Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 25th October 2002, 13:47   #1
aanardo
Junior Member
 
Join Date: Oct 2002
Posts: 1
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
aanardo is offline   Reply With Quote
Old 25th October 2002, 17:56   #2
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,338
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:
PHP Code:
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.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 25th October 2002, 19:05   #3
dselkirk
Senior Member
 
Join Date: Aug 2002
Posts: 118
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
Attached Files
File Type: zip ini2reg.zip (13.0 KB, 175 views)
dselkirk is offline   Reply With Quote
Old 3rd November 2002, 07:26   #4
Mottel
Member
 
Join Date: Oct 2002
Location: Melbourne, Australia
Posts: 55
Calling Regedit

Look at new thread posted today (Nov 3, 2002)
Calling Regedit. Which method is better?
Mottel is offline   Reply With Quote
Old 4th November 2002, 00:35   #5
Mottel
Member
 
Join Date: Oct 2002
Location: Melbourne, Australia
Posts: 55
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 is offline   Reply With Quote
Old 4th November 2002, 13:00   #6
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,338
Mottel, please stop cross-posting. There is no need in a clone thread. Post only in the new thread.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Reply
Go Back   Winamp Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump