MSI.SetFeatureState

boolean MSI.SetFeatureState ( 

number hInstall,

string Feature,

number InstallState )

Description

Calls the MsiSetFeatureState function that sets a feature to a specified state.

Parameters

hInstall

(number) The handle to the install.

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

Feature

(string) The name of the feature within the product.

InstallState

(number) The state to set. Can be one of the following:

CONSTANT

VALUE

DESCRIPTION

INSTALLSTATE_ADVERTISED

1

The feature is advertised.

INSTALLSTATE_ABSENT

2

The feature is not installed.

INSTALLSTATE_LOCAL

3

The feature was installed on the local drive.

INSTALLSTATE_SOURCE

4

The feature will run from source, CD, or network.

Returns

(boolean)  Returns true if the action succeeds. 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