Archive: Adding registry values from reg file


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


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.


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 ?


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."


Thaks a lot :)