Jump to content

RunWait Using Registry Files


Recommended Posts

Hi all,

 

I have a section in my script 

RunWait("REGEDIT /S C:\dev\Playground\Portus\Notes\ISISParameters.reg")
GUICtrlSetData($statusList,"ISISParameters Registry Values Set")
RunWait("REGEDIT /S C:\dev\Playground\Portus\Notes\FrameworkLocators.reg")
GUICtrlSetData($statusList,"FrameworkLocators Registry Values Set")

I need to update registry files according to a pre-existing .reg file. I do not own, or have authorship over this .reg files. The goal is to be able to switch registry files, depending on a selection by a user. The desired registry files will live on a share drive, where according to the user selection, I will copy from the shared drive, to the local workstation. 

 

The first RunWait is working, and registry updating as expected.

However the second is not working. And Im not sure why. Full code is attached.

 

Thanks for reading

Portus.au3

Link to comment
Share on other sites

  • Moderators

"not working" doesn't help us a whole lot, especially since we have no idea what is in the registry file. Have you tried running it from a command line, and seeing what the response is?

Run(@ComSpec & " /k " & 'REGEDIT /S "C:\dev\Playground\Portus\Notes\FrameworkLocators.reg"')

Also, have you tried adding #RequireAdmin at the top of the script?

 

Edit: Fixed my fat-fingering, thanks Jos

Edited by JLogan3o13

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
Share on other sites

  • 3 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...