Old 28th September 2005, 00:57   #1
thecoolnessrune
Junior Member
 
Join Date: Sep 2005
Posts: 2
Question Running other .exe's during installation

Hi all. I'm new here and a beginner to NSIS. I have been using niseditor to make installers. I wanted to know if anyone could post an example script that I could use to run an exe put in with the NSIS installer during installations. For instance:

Begin installation:

Install standard stuff
When finished execute specific installer
When finished with that one install another
Then complete the installation

All while being able to have the user choose which exe(s) he wants to install.

Can anyone help with this???
thecoolnessrune is offline   Reply With Quote
Old 28th September 2005, 06:50   #2
Jamyn
Junior Member
 
Join Date: Aug 2002
Location: Texas
Posts: 36
PHP Code:
Section InstallSomething SEC0000
  ClearErrors
  DetailPrint 
"Running something cool."
  
ExecWait "C:\Program Files\Windows NT\Accessories\wordpad.exe"
  
IfErrors stop
  DetailPrint 
"Running something else cool."
  
ExecWait "c:\windows\system32\notepad.exe"
  
IfErrors stop
  
goto done

  stop
:
    
DetailPrint "Installation failed."
    
Sleep 5000 Delay 5 seconds so they can read it.
    
Abort
  done
:
SectionEnd 
If you want the section "hidden" from the list of choices the user can make, put a "-" in front of the section name. Like:

Section -InstallSomething SEC0000

You can use "Exec" instead of "ExecWait" if you don't want the installer to wait for whatever it is to finish running. Sounds like you want to use ExecWait. PS: I think you can use %SYSTEMROOT% (c:\windows\) and %PROGRAMFILES% (c:\program files\) inside NSIS installers.
Jamyn is offline   Reply With Quote
Old 28th September 2005, 22:34   #3
thecoolnessrune
Junior Member
 
Join Date: Sep 2005
Posts: 2
Wow man thx alot!
thecoolnessrune 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