MSI Factory 2.3

MSI.EnumRelatedProducts

MSI.EnumRelatedProducts

This is the first topic This is the last topic  

MSI.EnumRelatedProducts

This is the first topic This is the last topic  

OverviewExamples

table MSI.EnumRelatedProducts (

string UpgradeCode )

Example 1

-- Enumerate the products.

tbProducts = MSI.EnumRelatedProducts("{07F11339-6660-4CEC-9E09-BB2FEA780929}");

 

if (tbProducts) then

   strMessage = "The following products were detected for the upgrade code:\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 were found.");

end

Gets a numerically indexed table of related product codes found on the system given the upgrade code, 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