MSI.GetFeatureState |
|
|
|
MSI.GetFeatureState |
|
|
|
|
||
OverviewExamples
-- Get the state of the feature named "Test_Feature."
tbFeatureState = MSI.GetFeatureState(_hInstall, "Test_Feature");
-- Test for error
error = Application.GetLastError();
if (tbFeatureState) then
strMessage = "Installed: "..tbFeatureState.Installed.."\r\nAction: "..tbFeatureState.Action;
Dialog.Message("Feature State", strMessage);
else
if (error ~= 0) then
Dialog.Message("Error", _tblErrorMessages[error], MB_OK, MB_ICONEXCLAMATION);
end
end
Gets the installed and action state of the feature named "Test_Feature" and shows their values in a dialog message.
See also: Related Actions
Learn More: Indigo Rose Software - MSI Factory - Buy Now - Contact Us