The MsiSetMode function sets an internal engine Boolean state.
UINT MsiSetMode( __in MSIHANDLE hInstall, __in unsigned int iRunMode, __in BOOL fState );
Handle to the installation provided to a DLL custom action or obtained through MsiOpenPackage, MsiOpenPackageEx, or MsiOpenProduct.
Specifies the run mode. This parameter must be one of the following values. While there are many values for this parameter, as described in MsiGetMode, only one of the following values can be set.
A reboot is necessary after a successful installation.
A reboot is necessary to continue installation.
Specifies the state to set to TRUE or FALSE.
Access was denied.
An invalid or inactive handle was supplied.
The function succeeded.
Send comments about this topic to Microsoft
Build date: 11/12/2009