MSI_IsPackageInstalled

Description

Test if specified package has been installed


Syntax

MSI_IsPackageInstalled(sMSIFile, bMustExist) As Boolean


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

Result will be stored in gbValue


Example

VBScript
If bStatus Then bStatus = MSI_IsPackageInstalled("C:\CapaInstaller.msi", False)
If bStatus Then bStatus = Job_WriteLog("Custom", "gbValue: " & gbValue, bStatus, True)

Scripting Guidelines


Related functions

MSI_InstallPackage MSI_UnInstallByFile MSI_GetPackageStatus