Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

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

  • No labels