Skip to content

MSI\_IsPackageInstalled

Test if specified package has been installed

MSI_IsPackageInstalled(sMSIFile, bMustExist) As Boolean

sMSIFile (String)

Path and filename 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_IsPackageInstalled("C:\CapaInstaller.msi", False)
If bStatus Then bStatus = Job_WriteLog("Custom", "gbValue: " & gbValue, bStatus, True)

Scripting Guidelines

MSI_InstallPackage MSI_UnInstallByFile MSI_GetPackageStatus