Busturdust Posted June 25, 2015 Posted June 25, 2015 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
Moderators JLogan3o13 Posted June 25, 2015 Moderators Posted June 25, 2015 (edited) "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 June 25, 2015 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!
Developers Jos Posted June 25, 2015 Developers Posted June 25, 2015 Don't forget the space between /k and regedit. Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
jguinch Posted July 15, 2015 Posted July 15, 2015 Try to remove the /S parameter temporarily, to see if the command works (with /S, regedit doesn't show any success or error message) Spoiler Network configuration UDF, _DirGetSizeByExtension, _UninstallList Firefox ConfigurationArray multi-dimensions, Printer Management UDF
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now