Archive: temporary files


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?


Add this first when you add your sections.

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


That should work.

You beat me to the punch, Urd! :D

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.)