Skip to content

MSI_IsPackageInstalledByGuid

Tests whether the MSI product with the specified product code is installed. You don’t need the MSI package file.

MSI_IsPackageInstalledByGuid(sProductCode, bMustBeInstalled) As Boolean

ProductCode of the MSI-package. If you leave out the braces, the function adds them.

Function will return false if bMustBeInstalled is true and package is not installed

Result will be stored in gbValue.

gbValue is TRUE if Windows Installer knows the product on the computer. This includes products that are only advertised, or installed for another user. To check that the product is fully installed, use MSI_GetPackageStatusByGuid instead.

If bStatus Then bStatus = MSI_IsPackageInstalledByGuid("{38c5a3b5-8501-4d2e-8713-fc4116f5f519}", False)
If bStatus Then bStatus = Job_WriteLog("Custom", "gbValue: " & gbValue, bStatus, True)

Scripting Guidelines

MSI_InstallPackage MSI_UnInstallByFile MSI_GetPackageStatus Constants Package Property Variables