Old 20th November 2007, 20:17   #1
crowl
Junior Member
 
Join Date: Nov 2007
Posts: 3
NSIS DOS Command via ExecShell

Hello,
I want to Install a Reg-File via ExecShell. In Dos I would use "regedit /s regfile.reg".
How can I do this via ExecShell in NSIS? I have problems with the parameters...

Thanks!
crowl is offline   Reply With Quote
Old 20th November 2007, 20:19   #2
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
You'd want ExecWait in this case. ExecShell is usually for opening documents. But a better overall solution would be using reg2nsis which turns .reg files into scripts.

http://nsis.sourceforge.net/Reg2Nsis..._NSIS_commands

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 20th November 2007, 20:24   #3
crowl
Junior Member
 
Join Date: Nov 2007
Posts: 3
Hey,
thanks for your fast answere. The Reg file was just an example, i need other Dos Commands with parameters too. So how do it work?
crowl is offline   Reply With Quote
Old 20th November 2007, 20:35   #4
crowl
Junior Member
 
Join Date: Nov 2007
Posts: 3
Ok, I just got it. When you use ExecWait "commandpromt" you can just tipe in your command. Thanks!
crowl 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