MSI.InstallMissingComponent

boolean MSI.InstallMissingComponent (

string ProductCode,

string ComponentGUID,

number InstallState )

Description

Calls the MsiInstallMissingComponent function to install a component that is unexpectedly missing.

Parameters

ProductCode

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

ComponentGUID

(string) The identifier (GUID) of the component to be installed. This string must be an identifier string enclosed in curly braces, for example: "{1638E94C-DA3C-44BD-88FB-5CC76B59BE46}".

InstallState

(number) The way the component should be installed. Choose from one of the following:

CONSTANT

VALUE

DESCRIPTION

INSTALLSTATE_LOCAL

3

The component should be locally installed.

INSTALLSTATE_SOURCE

4

The component should be installed to run from the source.

INSTALLSTATE_DEFAULT

5

The component should be installed according to the installer defaults.

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