Daij-Djan
3rd June 2002 10:45 UTC
Adding registry values from reg file
I havee a reg file i include in the installer so i can just import the settings from that file instead of adding each value and key via NSIS's functions.
My problem is: i dont want regsvr to shpow that annoying warning message box asking the user to confirm the operation.
Is there a way to surpress this? Or some other way to get the reg values vfrom the reg file into the registry?
Thank you
Smile2Me
3rd June 2002 10:55 UTC
This is the shell extension for .reg files: regedit.exe "%1"
I searched help, but it seems not possible to execute a .reg file and suppress the warning. Also the shell extension does not give any hint for an additional parameter.
So, you should import the resettings into NSIS to overcome the warning.
Good luck,
-Hendri.
veekee
3rd June 2002 17:46 UTC
Isn't it possible to execute 'regedit file.reg', to get its handle, to wait for a seconde and then to emulate a Return to close the dialog box ?
SphinxLova
3rd June 2002 23:19 UTC
regedit.exe regfile.reg /S or /s
/s is the silent command
it might be regedit /s regfile.reg
i'm not sure.. im sure you should use the /s command though..
/Sphinx
EDITED:
found the text file i was looking for... from a Lockergnome GnomeTip
"Create a shortcut to it, add the "/S" switch to the Target field to "silence" the task."
Daij-Djan
4th June 2002 13:47 UTC
Thaks a lot :)