Old 12th February 2003, 08:16   #1
smile999
Junior Member
 
Join Date: Feb 2003
Posts: 1
Question 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??
smile999 is offline   Reply With Quote
Old 12th February 2003, 08:53   #2
Joost Verburg
NSIS MUI Dev
 
Join Date: Nov 2001
Posts: 3,717
There is an application that converts .reg files. Please search the forum.
Joost Verburg is offline   Reply With Quote
Old 12th February 2003, 09:21   #3
Sunjammer
Major Dude
 
Join Date: Jun 2002
Location: Swindon, UK
Posts: 559
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.
Sunjammer is offline   Reply With Quote
Old 12th February 2003, 14:25   #4
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
You can also use:
PHP Code:
SearchPath $0 regedit.exe
ExecWait 
'"$0" /s regfile.reg' 

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 12th February 2003, 14:54   #5
Sunjammer
Major Dude
 
Join Date: Jun 2002
Location: Swindon, UK
Posts: 559
Didn't know that
Sunjammer is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast 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