Archive: About Registry..


About Registry..
It is very difficult that insert registry infomation one by one

with WriteRegStr Command

For Example..

WriteRegStr HKLM SOFTWARE\Example1 "Install_Dir" "$INSTDIR"
:
:


Can I use *.reg file without confirm message in NSIS ??
( last night, I tried to excute *.reg file with Exec command..
But It dose't work.. ^^;; )

or Is there any efficient method??


There is an application that converts .reg files. Please search the forum.


IRegistrar COM interface implements the mechanism for loading the BNF form .reg files into the registry. Any code making use of the FileRegister or StringRegister functions of this interface will be to do what you ask.

I've said this in case anyone knows of an existing way of calling a COM object from within NSIS, and also if anyone knows when the object implementing that interface started being distributed with Windows (i.e. does 98 support it?).

Hmm I wonder if a COM object could be created and used with the System plugin... that would be cool.


You can also use:

SearchPath$0regedit.exe

ExecWait
'"$0"/sregfile.reg'

Didn't know that :)