Creating a Silent Installation
InstallShield 2022
Project:This information applies to the following project types:
• | InstallScript |
• | InstallScript MSI |
If you want to create an installation that will be run in silent mode, create your installation in a typical manner, and test the script in the normal (non-silent) manner.
You can easily modify your installation script logic to include flow control based on whether your installation is being run in silent mode. InstallShield provides a system variable called MODE. The MODE variable contains one of the following constants to identify the installation’s current mode:
• | NORMALMODE—Indicates that the installation is running in normal mode. |
• | RECORDMODE—Indicates that the Setup.exe file is automatically generating a silent installation file (.iss file), which is a record of the installation input, in the Windows folder. |
• | SILENTMODE—Indicates that the installation is running in silent mode. |
For more information, see MODE.
Tip:All InstallShield built-in and Sd dialogs automatically handle the values stored in the InstallShield Silent response file (.iss file). If you are creating custom dialogs, you will need to call SilentReadData to handle the dialog’s return values in silent mode.
After you have created or modified the installation, the next step in creating a silent installation is to create the response file.