SFX commands: Presetup


Presetup=[<mode>]<program>

SFX will try to execute <program> before starting extraction, so <program> must already exist on disk. The destination folder is set as the current before executing <program>. You may use this command, for example, to remove a previous version of program, when installing a new version over the old one. 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 'uninstall.exe /clean' using the default window visibility and size:

    Presetup=uninstall.exe /clean

  2. Start 'uninstall.exe /clean' and hide its window:

    Presetup=<hide>uninstall.exe /clean

Notes

  1. 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 without any parameters.