Jump to content
Sign in to follow this  
Busturdust

RunWait Using Registry Files

Recommended Posts

Busturdust

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

Share this post


Link to post
Share on other sites
JLogan3o13

"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

√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

×