OverviewExamples
Calls the MsiGetFeatureState function that gets the requested state of a feature.
(number) The handle to the installation.
Note: _hInstall is the default for this parameter. See Global Variables for more information.
(string) The name of the feature.
(table) Returns nil if the call fails or a table if successful with the following indexes: You can also retrieve extended error information using the MSI.GetLastErrorRecord action.
(number) Will be one of the following values.
CONSTANT |
VALUE |
DESCRIPTION |
INSTALLSTATE_BADCONFIG |
-6 |
The configuration data is corrupt. |
INSTALLSTATE_INCOMPLETE |
-5 |
The installation is suspended or in progress. |
INSTALLSTATE_SOURCEABSENT |
-4 |
The feature must run from the source, and the source is unavailable. |
INSTALLSTATE_MOREDATA |
-3 |
The return buffer is full. |
INSTALLSTATE_INVALIDARG |
-2 |
An invalid parameter was passed to the function. |
INSTALLSTATE_UNKNOWN |
-1 |
An unrecognized product or feature was specified. |
INSTALLSTATE_BROKEN |
0 |
The feature is broken. |
INSTALLSTATE_ADVERTISED |
1 |
The advertised feature. |
INSTALLSTATE_ABSENT |
2 |
The feature was uninstalled. |
INSTALLSTATE_LOCAL |
3 |
The feature was installed on the local drive. |
INSTALLSTATE_SOURCE |
4 |
The feature must run from the source, CD-ROM, or network. |
INSTALLSTATE_DEFAULT |
5 |
The feature is installed in the default location: local or source. |
(number) Will be one of the following values.
CONSTANT |
VALUE |
DESCRIPTION |
INSTALLSTATE_BADCONFIG |
-6 |
The configuration data is corrupt. |
INSTALLSTATE_INCOMPLETE |
-5 |
The installation is suspended or in progress. |
INSTALLSTATE_SOURCEABSENT |
-4 |
The feature must run from the source, and the source is unavailable. |
INSTALLSTATE_MOREDATA |
-3 |
The return buffer is full. |
INSTALLSTATE_INVALIDARG |
-2 |
An invalid parameter was passed to the function. |
INSTALLSTATE_UNKNOWN |
-1 |
An unrecognized product or feature was specified. |
INSTALLSTATE_BROKEN |
0 |
The feature is broken. |
INSTALLSTATE_ADVERTISED |
1 |
The advertised feature. |
INSTALLSTATE_ABSENT |
2 |
The feature was uninstalled. |
INSTALLSTATE_LOCAL |
3 |
The feature was installed on the local drive. |
INSTALLSTATE_SOURCE |
4 |
The feature must run from the source, CD-ROM, or network. |
INSTALLSTATE_DEFAULT |
5 |
The feature is installed in the default location: local or source. |
See also: Related Actions