Forum Discussion

m_essaid's avatar
m_essaid
Valued Contributor
6 years ago

regedit.exe and TestExecute

Hi,

I experience some issue with a .reg file that needs to be executed at a moment of my tests.

I have a new machine (physical machine) and when the .reg file is run TestExecute don't interact with the "Yes" and the "OK" button.

Please help...

Thank you,

Mehdi

5 Replies

  • cunderw's avatar
    cunderw
    Community Hero

    It might make more sense to create a batch file that you can execute from script code as opposed to trying apply the reg through regedit UI. 

    • m_essaid's avatar
      m_essaid
      Valued Contributor

      hi cunderw,

       

      you may be right, but I'm working like this since quite a long time...

      I finaly figured out what was happening :

      I was trying to run my tests on a machine with another account.

      I went back to the Admin account, and in the main user of regedit.exe, instead of "trusted installer" I changed this value to my new user... And this works.

      But I think that I should reformat this machine and use directly my new user as admin, it would be simplier.

      • cunderw's avatar
        cunderw
        Community Hero

        Glad you figued it out, if you would like some help with creating a batch script to do it instead just let me know! :)