TempMode=[Question][,Title]
This command forces SFX to create a temporary folder, extract all files to it, start the program specified in Setup command and remove the temporary folder including all its contents after completing the Setup program. The SFX automatically sets the silent mode to 2 to skip the start dialog when performing these operations, but you can override it by specifying Silent command with another parameter. Temporary folder with unpacked files is set as the current folder for setup program.
TempMode command may have the optional string parameter, which is used to define a question and question title displayed before extraction. In such case the extraction is started only if user selects "Yes" button.
If TempMode command is present, a script should also have Setup command. Path command is ignored in this mode.
In TempMode SFX needs to detect the termination of setup program to delete temporary files. Such approach works correctly if setup program is not terminated before installation is done. But sometimes the setup program starts a child process and terminates, expecting a child process to complete installation. In such case SFX deletes temporary files immediately after detecting that main setup application is finished, resulting in malfunctioning child process. So TempMode works correctly only with those setup programs, which do not start another processes or, at least, are not terminated until all child processes are finished.
a) TempMode
b) TempMode=Do you wish to continue installation of Calculator 3.05?, Calculator setup