MSI\_IsPackageInstalled
Description
Section titled “Description”Test if specified package has been installed
Syntax
Section titled “Syntax”MSI_IsPackageInstalled(sMSIFile, bMustExist) As Boolean
Parameters
Section titled “Parameters”sMSIFile (String)
Path and filename of the MSI-package
bMustBeInstalled (Boolean)
Function will return false if bMustBeInstalled is true and package is not installed
Return value
Section titled “Return value”Result will be stored in gbValue
Example
Section titled “Example”VBScript
If bStatus Then bStatus = MSI_IsPackageInstalled("C:\CapaInstaller.msi", False)If bStatus Then bStatus = Job_WriteLog("Custom", "gbValue: " & gbValue, bStatus, True)Related functions
Section titled “Related functions”MSI_InstallPackage MSI_UnInstallByFile MSI_GetPackageStatus