Mode Property

[This is preliminary documentation and subject to change.]

This is the Mode property of the MsiEngine 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.

Syntax

object.Mode(flag)

Parts

object
MsiEngine object.
flag

Required integer value for the flag. Must be one of the following:

imfAdmin =0 Admin mode install, else product install.
imfAdvertise =1 Advertise mode of install.
imfMaintenance =2 Maintenance mode database loaded.
imfRollbackEnabled =3 Rollback is enabled.
imfLogEnabled =4 Log file is active.
imfOperations =5 Executing or spooling operations.
imfRebootAtEnd =6 Reboot is needed (settable).
imfRebootNow =7 Reboot is needed to continue installation (settable).
imfCabinet =8 Installing files from cabinets and files using Media table.
imfSourceShortNames =9 Source files use only short file names.
imfTargetShortNames =10 Target files are to use only short file names line.
imfWindows9x =12 Operating system is Windows 95 or Windows 98, but not Windows NT.
imfZawEnabled =13 Operating system supports advertising of products.