OverviewExamples
Calls the MsiGetComponentState function that obtains the state of a component.
(number) The handle to the installation.
Note: _hInstall is the default for this parameter. See Global Variables for more information.
(string) The component name within the product.
(table) Returns nil if the call fails or a table if successful with the following indexes:
(number) Will be one of the following values. You can also retrieve extended error information using the MSI.GetLastErrorRecord action.
CONSTANT |
VALUE |
DESCRIPTION |
INSTALLSTATE_UNKNOWN |
-1 |
The product code or component identifier is unknown. |
INSTALLSTATE_REMOVED |
1 |
Component being removed |
INSTALLSTATE_ABSENT |
2 |
The component is not installed. |
INSTALLSTATE_LOCAL |
3 |
The component is installed locally. |
INSTALLSTATE_SOURCE |
4 |
The component is installed to run from source. |
INSTALLSTATE_DEFAULT |
5 |
Use default, local or source. |
(number) Will be one of the following values.
CONSTANT |
VALUE |
DESCRIPTION |
INSTALLSTATE_UNKNOWN |
-1 |
The product code or component identifier is unknown. |
INSTALLSTATE_REMOVED |
1 |
Component being removed |
INSTALLSTATE_ABSENT |
2 |
The component is not installed. |
INSTALLSTATE_LOCAL |
3 |
The component is installed locally. |
INSTALLSTATE_SOURCE |
4 |
The component is installed to run from source. |
INSTALLSTATE_DEFAULT |
5 |
Use default, local or source. |
See also: Related Actions