Registry...
How to write in registry from a *.reg file? :confused: :confused:
Archive: Registry...
Registry...
How to write in registry from a *.reg file? :confused: :confused:
You could use one of the exec commands or preferably if possible rewrite the .reg file into nsis script.
Vytautas
Why not use the NSIS registry commands?
1- I tried to use ExecShell but it doesn't work
2- becuase it's so long registrys
When you called regedit, did you use the paramter /s?
See a little tutorial.
Now you can use ExecShell ;)
The is also a .reg to NSIS script converter available:
http://forums.winamp.com/showthread.php?threadid=112607
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