Skip to content

MSI_GetGuidsByProductName

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.

MSI_GetGuidsByProductName(sProductName) As Boolean

Product name, or part of it

Result will be stored in gaValue, one product code per element. If no product matches, gaValue is an empty array.

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)
Next
End If

Scripting Guidelines

MSI_SearchForPackageInfoByName MSI_IsPackageInstalledByGuid Constants Package Property Variables