Skip to content

MSI\_IsPackageInstalledByGuid

Test if specified package has been installed based on product code

MSI_IsPackageInstalled(sProductCode, bMustExist) As Boolean

sProductCode (String)

ProductCode of the MSI-package

bMustBeInstalled (Boolean)

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

Result will be stored in gbValue

VBScript

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