Archive: Registry conversion script?


Registry conversion script?
In my all-in-one installer for Cacti, I'm installing MySQL, PHP, Net-SNMP, and the Cacti files. MySQL has a TON of registry entries which need to be imported (well over 250). What I'm doing currently, is simply importing a registry file which has all the keys (previously exported by me). Of course that presents a problem when someone wants to install stuff on D: and the registry keys are set up for C:.

I really don't want to manually type out hundreds of registry keys in NSIS code. Also, when a new version of MySQL comes out, it will have slightly different keys because its MSI installer based.

Is there a script out there which I can feed a .reg file and it will spit out the NSIS equivalent code for me?


Why not use directly the .reg with nsis?


As I stated before, thats what I'm currently doing. The problem is that the .reg files I'm currently using are set up for the C: drive. So if someone installs on the D: drive, all the registry entries are invalid.


Try to search the forum for reg2nsis. Could be helpfull, yet, has problems with binary entries.
Also you should edit manually those entries reffered to path.