SFX options: Setup

WinRAR

SFX options: Setup


This dialog is a part of the "Advanced SFX options" dialog and includes the following settings:

Setup program/Run after extraction

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

It is allowed to specify several setup programs here, one program per line. If you do not want to start all setup programs simultaneously, set "Wait and return exit code" option.

Read notes to Setup topic for some additional details.

Corresponding SFX script command - Setup

Setup program/Run before extraction

SFX will try to execute the specified program before starting extraction, so this program must already exist on disk. The destination folder is set as the current before executing the program. If a program name contains spaces, it must be enclosed in quotes. You may use this command, for example, to remove a previous version of program, when installing a new version over the old one.

It is allowed to specify several setup programs here, one program per line. If you do not want to start all setup programs simultaneously, set "Wait and return exit code" option.

Corresponding SFX script command - Presetup

Setup program/Wait and return exit code

If this option is on, SFX waits for termination of setup program and returns the exit code of setup program increased by 1000 as the exit code of SFX executable.

If SFX failed to run a setup program because of some error, it returns its own error codes, which are the same as WinRAR exit codes and always less than 1000. You can read SetupCode topic for additional details.

Corresponding SFX script command - SetupCode