MSI Factory 2.3

MSI.EnumProducts

MSI.EnumProducts

This is the first topic This is the last topic  

MSI.EnumProducts

This is the first topic This is the last topic  

OverviewExamples

table MSI.EnumProducts (

)

Example 1

-- Enumerate the products.

tbProducts = MSI.EnumProducts();

 

if (tbProducts) then

   strMessage = "The following products were detected:\r\n\r\n";

   for index, value in tbProducts do

       strMessage = strMessage..value.."\r\n";

   end

 

   -- Show a message with all of the products detected.

   Dialog.Message("Products Found", strMessage);

else

   Dialog.Message("Notice", "No products are installed.");

end

Gets a numerically indexed table of product codes found on the system and shows them in a list in a dialog message. If an error occurs, or no products were found, an error message is shown.

See also: Related Actions


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