Skip to content
⌘ NSIS Forum Archive

Registry...

7 posts

Vytautas#
You could use one of the exec commands or preferably if possible rewrite the .reg file into nsis script.

Vytautas
Joel#
When you called regedit, did you use the paramter /s?
See a little tutorial.
Now you can use ExecShell 😉
Joost Verburg#
The is also a .reg to NSIS script converter available:

Are you a developer who uses NSIS to distribute your application? Are you a Winamp plug-in developer who wants to use NSIS to distribute your plug-in? Have suggestions for other people like you? This is the place.
Ferekikoo#
Thanks

Thanks Joost Verburg i tried this code & it works
GetTempFileName $R0
File /oname=$R0 E.reg ; copy myreg.reg to <uniquefilename> on target PC
ExecWait 'Regedit.exe /S "$R0"' ; merge the copied file into the registry (silently)
Delete $R0 ; delete the temporary file
Thanks Again 👍 😁