MSI Factory 2.3

MSI.QueryProductState

MSI.QueryProductState

This is the first topic This is the last topic  

MSI.QueryProductState

This is the first topic This is the last topic  

OverviewExamples

number MSI.QueryProductState (

string ProductCode )

Example 1

-- Get the product's installed state.

nState = MSI.QueryProductState("{78B82B0B-9AD9-40C0-B994-F72C21B52723}");

 

if (INSTALLSTATE_DEFAULT == nState) then

   Dialog.Message("Installed State", "The product is installed for the current user.");

else

   Dialog.Message("State Unknown", "The product is either not installed, or an error occurred.");

end

Determines whether or not a product with the product code "{78B82B0B-9AD9-40C0-B994-F72C21B52723}" is installed for the current user showing the result in a dialog message.

See also: Related Actions


Learn More: Indigo Rose Software - MSI Factory - Buy Now - Contact Us