MSI Factory 2.3

MSI.GetFeatureState

MSI.GetFeatureState

This is the first topic This is the last topic  

MSI.GetFeatureState

This is the first topic This is the last topic  

OverviewExamples

table MSI.GetFeatureState (

number hInstall,

string Feature )

Example 1

-- 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