MSI_GetGuidsByProductName
Description
Section titled “Description”Gets the product codes (GUIDs) of all installed MSI products whose product name contains sProductName. The search isn’t case-sensitive, and a partial name matches.
Syntax
Section titled “Syntax”MSI_GetGuidsByProductName(sProductName) As Boolean
Parameters
Section titled “Parameters”sProductName (String)
Section titled “sProductName (String)”Product name, or part of it
Return value
Section titled “Return value”Result will be stored in gaValue, one product code per element. If no product matches, gaValue is an empty array.
Example
Section titled “Example”If bStatus Then bStatus = MSI_GetGuidsByProductName("CapaInstaller")If bStatus And IsArray(gaValue) Then For index = LBound(gaValue) To UBound(gaValue) bStatus = Job_WriteLog("Custom", "Index #" & index & ": " & gaValue(index), bStatus, False) NextEnd IfRelated functions
Section titled “Related functions”MSI_SearchForPackageInfoByName MSI_IsPackageInstalledByGuid Constants Package Property Variables