MSI.SetInstallLevel

boolean MSI.SetInstallLevel ( 

number hInstall,

number InstallLevel )

Description

Calls the MsiSetInstallLevel function that sets the installation level for a full product installation.

Note: This action will only succeed at certain times during an installation. It is best to call this action as early as possible. Calling this action during either of the two UI sequences, before the InstallInitialize action, or directly after the InstallInitialize action are good places.

Parameters

hInstall

(number) The handle to the install.

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

InstallLevel

(number) The installation level as a value from 1 to 32767. The initial value is determined by the INSTALLLEVEL property in the Property Table. If zero or a negative number is passed, the current installation level does not change.

Returns

(boolean)  Returns true if the action succeeds to set the install level. You can use Application.GetLastError to determine whether this action failed, and why. You can also retrieve extended error information using the MSI.GetLastErrorRecord action.

See also:  Related Actions