MSI.GetProductProperty

string MSI.GetProductProperty ( 

number Handle,

string Property )

Example 1

-- Get the product handle.
nProductHandle = MSI.OpenProduct("{78B82B0B-9AD9-40C0-B994-F72C21B52723}");

if (nProductHandle) then
    strProperty = MSI.GetProductProperty(nProductHandle, "SUFUSERPROFILE");
    if (strProperty) then
        -- Show a dialog with the feature info.
        Dialog.Message("Property", "Property value: "..strProperty);
    else
        -- An error occurred.
        nError = Application.GetLastError();
        Dialog.Message("Error", _tblErrorMessages[nError], MB_OK, MB_ICONEXCLAMATION);
    end

    -- Finished using the product handle, so close it.
    if (not MSI.CloseHandle(nProductHandle)) then
        Dialog.Message("Error", "Failed to close product handle.");
    end
else
    Dialog.Message("Error", "Failed to get product handle.");
end

Gets the product property "SUFUSERPROFILE" and shows its value in dialog message.

See also:  Related Actions