Skip to content

MSI_SearchForPackageInfoByName

Returns an array of dictionaries that contain information about installed msi packages that match the search filter.

MSI_SearchForPackageInfoByName(sSearchFor) As Boolean

Text to search for in the product names of the installed MSI products. The search isn’t case-sensitive, and a partial name matches.

Result will be stored in gaValue. Each item in the array will be of type Dictionary. Property collected is used as the name of the key. If no product matches, gaValue is an empty array.

Collected properties are: ProductCode, ProductName, InstallLocation and VersionString

If bStatus Then bStatus = MSI_SearchForPackageInfoByName("CapaInstaller")
If bStatus Then
For Each dProduct In gaValue
For Each sKey in dProduct.Keys
bStatus = Job_WriteLog("Custom", "Key: '" & sKey & "' value: '" & dProduct.Item(sKey) & "'", bStatus, True)
Next
Next
End If

Scripting Guidelines

Constants Package Property Variables