MSI.ConfigureFeature

boolean MSI.ConfigureFeature (

string ProductCode,

string FeatureID,

number InstallState )

Description

Calls the MsiConfigureFeature function to configure the installed state for a product feature.

Parameters

ProductCode

(string) The "product code" of the product to be configured. This string must be an identifier string enclosed in curly braces, for example: "{78B82B0B-9AD9-40C0-B994-F72C21B52723}".

FeatureID

(string) The identifier of the feature to be configured.

InstallState

(number) The installation state for the feature. Choose from one of the following:

CONSTANT

VALUE

DESCRIPTION

INSTALLSTATE_ADVERTISED

1

The feature is advertised.

INSTALLSTATE_ABSENT

2

The feature is uninstalled.

INSTALLSTATE_LOCAL

3

The feature is installed locally.

INSTALLSTATE_SOURCE

4

The feature is installed to run from source.

INSTALLSTATE_DEFAULT

5

The feature is installed to its default location.

Returns

(boolean) Returns true if the action was successful, or false if it failed. You can use Application.GetLastError to determine whether this action failed, and why.

ResultVariable

When adding an action with the action editor, you can use this field to specify a variable that the return value will be stored in.

See also: Related Actions