InstallShield 2018 » InstallScript Language Reference
The system variable MODE holds one of the following constant values (note that the value cannot be changed at run time):
| Constant | Meaning | 
| SILENTMODE | Indicates that Setup.exe is running in silent mode. (That is, the user ran Setup.exe with the /s argument.) | 
| NORMALMODE | Indicates Setup.exe is running in normal mode. | 
| RECORDMODE | Indicates Setup.exe is automatically generating a silent setup file (.iss file), which is a record of the setup input, by default in the Windows folder. (That is, when you run Setup.exe with the /r argument.) | 
You can use the system variable MODE in if statements to control the flow of your script based on mode, as shown below:
if (MODE = SILENTMODE) then
// Perform silent setup actions and events.
else
// Perform normal setup actions and events.
endif;
Note • For a Basic MSI project, you can find if the user is running the installation in silent mode with the Windows Installer condition “UILevel=2”.
| InstallShield 2018 Help LibrarySeptember 2018 | Copyright Information | Flexera |