OverviewExamples
Calls the MsiSetComponentState function that sets a component to the requested state.
(number) The handle to the Install.
Note: _hInstall is the default for this parameter. See Global Variables for more information.
(string) The name of the component.
(number) The state to set. Can be one of the following:
CONSTANT |
VALUE |
DESCRIPTION |
INSTALLSTATE_ABSENT |
2 |
The component was uninstalled. |
INSTALLSTATE_LOCAL |
3 |
The component was installed on the local drive. |
INSTALLSTATE_SOURCE |
4 |
The component will run from source, CD, or network. |
(boolean) Returns true if the action succeeds to set the component state, false if it fails. 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