RunProgram="\"%ProgramFiles%\\Setup.exe\"" RunProgram="\"regedit\" settings.reg" AutoInstall="\"%ProgramFiles%\\Setup.exe\"" AutoInstall="\"regedit\" settings.reg"
After launching the SFX archive as "sfx.exe -gm2 -s -y", switches "-s -y" are passed to the first line, and the following commands are executed:RunProgram="\"%ProgramFiles%\\Setup.exe\" -s -y" RunProgram="\"regedit\" settings.reg".
If you invoke an automated scenario by launching the same SFX archive as "sfx.exe -ai -s -y", switches "-s -y" are passed to the third line, and the following commands are executed:AutoInstall="\"%ProgramFiles%\\Setup.exe\" -s -y" AutoInstall="\"regedit\" settings.reg"
In certain scenarios you may need to pass a switch that matches one of the native module switches. For example, you have "RunProgram="setup.exe -s" in the config file while you need to execute "setup.exe -s -y" (note, '-y' is a native module switch). In order to pass this switch to the executable, you need to use the following command line: "sfx.exe -gm2 -! -y". As a result, '-y' switch will be ignored by the module and passed to the executable inside the archive, so you get the command you need. Meanwhile, the module recognizes its native switch '-gm2' and performs silent extraction of the archive content.
Automated installation by the specified scenario. X can take the values from 0 to 9. You must have the invoked scenario in the config file (AutoInstallX parameter). In other words, you must have a line like AutoInstall7="auto_install.exe params for scenario 7" for the -ai7 switch to work. Otherwise, the error message is displayed.
Batch mode is possible for automated installation. You need to specify numbers of automated installations after '-ai'. For example, launching "sfx.exe -ai372" consequently invokes 'AutoInstall3' first, then 'AutoInstall7', and finally 'AutoInstall2'. If either 'AutoInstallX' contains multiple commands, they are run consequently before moving on to the next 'AutoInstallX'.
Appearance mode and display duration for 'FinishMessage' dialog window, where X is:
This switch OVERRIDES 'fmX' prefixes in the config file. If 'FinishMessage' is not present in the config file, '-fmX' are ignored.
Dialog windows display mode. You can alter or completely replace 'GUIFlags' parameter specified in the config file.
The minus sign (-) removes flags, while the plus sign (+) adds flags. Examples of ALTERING flags:
The module ignores attempts to remove a flag that is not set or add a flag that is already added. For example, in the config file you have GUIFlags="136" (8+128), and the SFX archive is launched as follows: "-gf-8+128-256+1024". As a result, flag 8 is removed, flag 1024 is added, and other flags are ignored (because flag 128 is already present in 'GUIFlags' parameter, while flag 256 is absent and therefore can not be removed). Thus, the SFX archive is launched with GUIFlags="128+1024".
If you do not precede the first flag with the plus (+) or minus (-) sign, you can completely REPLACE 'GUIFlags' parameter in the config file.
This switch ALTERS or REPLACES 'GUIFlags' in the config file.
Extraction display mode, where X is:
|-h or -?||
Displays a dialog window with 'HelpText' and the "OK" button. If 'HelpText' is not present in the config file, the following message is displayed: "No "HelpText" in the configuration file".
Closing the window completes the module operation (i. e. nothing will be unpacked or executed).
"No Run" mode. Disallows running executables specified in 'RunProgram', 'ExecuteFile', 'AutoInstall' or 'AutoInstallX', i.e. only the extraction is performed. In addition, shortcuts are not created, files are not deleted as well as the SFX archive, i. e. 'Shortcut', 'Delete' and 'SelfDelete' are not executed.
This switch is disabled when the SFX archive is extracted to a temporary folder.
Overrides 'OverwriteMode' parameter in the config file.
Overrides 'SelfDelete' parameter in the config file.
Lets you extract the config file from the SFX archive and save the file in the folder of your choice. The switch is followed by a space and the file name (or the file path and name). File name and extension can be arbitrary. Relative paths are allowed. If the folder does not exist, it will be created. If an attempt to create a folder or write on a medium (such as CD) fails, the error message is displayed.
* See relative paths regarding the current folder.
Displays a dialog window with the SFX module version and creation date.
Useful when the module resources have been modified by somebody.
Hides the following dialog windows: 'BeginPrompt', 'ExtractPath', combined 'BeginPrompt' + 'ExtractPath' and 'FinishMessage'. The extraction window will be displayed (unless it is blocked by 'GUIMode' parameter or '-gm2' switch). If the extraction or installation process is interrupted, no 'CancelPrompt' confirmation window is displayed. Should errors occur, error message windows are displayed regardless of this switch. Native 7-zip SFX switch.