SFX commands: Setup


Setup=[<mode>]<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.

Program name can be preceded with optional <mode> string enclosed in < and > brackets. Mode string can include Max, Min and Hide commands allowing to start the setup program with maximized, minimized or hidden window.

Examples

  1. Start setup.exe using the default window visibility and size:

    Setup=setup.exe

  2. Start setup.exe and hide its window:

    Setup=<hide>setup.exe

Notes

  1. 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.
  2. 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%".
  3. 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.