Session.Mode property
This is the Mode property of the Session object. This property is a value representing the designated mode flag for the current install session. Most of the mode flags are read-only externally, but a few specified flags may be set as well.
The MsiGetMode function returns a Boolean TRUE or FALSE, indicating whether the specific property passed into the function is currently set (TRUE) or not set (FALSE).
Note that not all the run mode values of flag are available when calling the Mode property from a deferred custom action. For more information, see Obtaining Context Information for Deferred Execution Custom Actions.
This property is read-only.
propVal = Session.Mode
Required integer value for the flag. Must be one of the following:
Flag name | Meaning |
---|---|
|
Administrative mode install, else product install. |
|
Advertise mode of install. |
|
Maintenance mode database loaded. |
|
Rollback is enabled. |
|
Log file is active. |
|
Executing or spooling operations. |
|
Reboot is needed (settable). |
|
Reboot is needed to continue installation (settable). |
|
Installing files from cabinets and files using Media table. |
|
Source files use only short file names. |
|
Target files are to use only short file names. |
|
Operating system is Windows 98/95. |
|
Operating system supports advertising of products. |
|
Deferred custom action called from install script execution. |
|
Deferred custom action called from rollback execution script. |
|
Deferred custom action called from commit execution script. |
Requirement | Value |
---|---|
Version |
Windows Installer 5.0 on Windows Server 2012, Windows 8, Windows Server 2008 R2 or Windows 7. Windows Installer 4.0 or Windows Installer 4.5 on Windows Server 2008 or Windows Vista. Windows Installer on Windows Server 2003 or Windows XP |