Archive: convert .reg file


convert .reg file
  I'm just getting started with NSIS but was wondering is there an easy way to convert a .reg file into a NSIS script since this file has over 300 registry entries


Currently there is no easy way to convert it. You will have to write a NSIS script or a program to do it.

You can also call RegEdit to import it for you. For example:


GetTempFileName $R0

File/oname=$R0 myreg.reg
ExecWait 'RegEdit.exe /S "$R0"'
>Delete $R0
>
/S tells RegEdit to not show the dialog box asking the user if he's sure.

If you still want to convert to nsis code, here's a little util which will do it for you. Did it for fun.

Usage: ini2reg.exe file.reg
Output: file.nsi


Calling Regedit
  Look at new thread posted today (Nov 3, 2002)
Calling Regedit. Which method is better?


dselkirk's ini2reg
  No offence, but dselkirk's ini2reg falls over badly.
It's a good idea though and worth further development.
Perhaps the sample output posted on this thread will help show up where it falls over and what work needs to be done on it.


Mottel, please stop cross-posting. There is no need in a clone thread. Post only in the new thread.