OverviewExamples
table MSI.EnumProducts ( |
) |
-- Enumerate the products.
tbProducts = MSI.EnumProducts();
if (tbProducts) then
strMessage = "The following products were detected:\r\n\r\n";
for index, value in pairs(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