MSI.SetMode

boolean MSI.SetMode ( 

number  hInstall,

number  RunMode,

boolean State )

Description

Calls the MsiSetMode function that sets an internal engine Boolean state.

Parameters

 

hInstall

(number) The handle to the installation.

Note:  _hInstall is the default for this parameter. See Global Variables for more information.

RunMode

(number) Specifies the run mode. This parameter must be one of the following values.

CONSTANT

VALUE

DESCRIPTION

MSIRUNMODE_REBOOTATEND

6

Reboot needed after successful installation (settable). (Default)

MSIRUNMODE_REBOOTNOW

7

Reboot needed to continue installation (settable).

State

(boolean) Specifies the state to set to TRUE or FALSE.

VALUE

DESCRIPTION

true

Set the State to TRUE. (Default)

false

Set the State to FALSE

Returns

(boolean)  Returns true if the action succeeds to set the mode. You can use Application.GetLastError to determine whether this action failed, and why.

See also:  Related Actions