SFX commands: Setup


Setup=<program>

SFX will try to execute <program> after successful extraction. The folder containing extracted files is set as the current before executing <program>. If a program name contains spaces, it must be enclosed in quotes.

Example

Setup=setup.exe

Notes

  1. If you have problems to use SFX to run InstallShield setup.exe, try to execute "setup.exe /SMS" instead of simple "setup.exe". This switch allows SFX to detect termination of the InstallShield setup program.
  2. If application specified in Setup command does not have any parameters, you can use -sp<par> SFX command line switch to pass optional parameters to this application.
  3. SFX module sets sfxname, sfxcmd and sfxpar environment variables before running the setup program. sfxname variable contains a name of SFX archive. sfxcmd variable contains the complete command line received by SFX module. First parameter of this command line is SFX module name. sfxpar contains command line parameters only, without SFX module name. Setup program can read these variables if it needs such information. Also you can specify an expanded %variable% as a parameter, like "Setup=setup.exe %sfxpar%".
  4. SFX module displays "Extract" button instead of "Install" if no Setup or Presetup commands are present in the archive comment. If you prefer "Install" button, but do not need to execute any setup programs, you can add Setup=<> command. Or if you configure SFX archive through SFX options GUI dialog, just specify <> as setup program name. SFX module does not attempt to run a program with such name, but changes the button text.