Old 6th May 2005, 01:31   #1
paulf
Guest
 
Posts: n/a
temporary files

I want to run an executable file before I install other files. How do I extract and run that file into a temporary directory without it showing up as a component to install?
  Reply With Quote
Old 6th May 2005, 04:27   #2
Urd
Junior Member
 
Join Date: May 2005
Posts: 5
Add this first when you add your sections.

code:
Section -runsilent
SetOutPath "$TEMP"
File "file.exe"
Exec "$TEMP\file.exe"
SectionEnd



That should work.
Urd is offline   Reply With Quote
Old 6th May 2005, 04:41   #3
Comperio
Major Dude
 
Comperio's Avatar
 
Join Date: Jan 2005
Location: Oregon Coast
Posts: 737
You beat me to the punch, Urd!

Another tip:
You may want to use an ExecWait command instead of Exec. This way, your installation program will wait until your EXE is done before continuing to install.

In addtion, you may want to check for errors using the IfErrors command before you continue--it all depends on whether your EXE is required to complete sucessfully before the installation continutes.

(Instructions for how to use both Exec and ExecWait are in the help files.)
Comperio 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