Exist package
Description
Section titled “Description”Verifies if a package exists on the current management point.
Syntax
Section titled “Syntax”ExistPackage(ByVal name As String, ByVal version As String, ByVal Type As String) As Boolean
Parameters
Section titled “Parameters”name (String)
The name of the package.
version (String)
The package Version.
Type (String)
The package type;
- 1 (Computer)
- 2 (User)
Return value
Section titled “Return value”Boolean. The function returns True if the package exists, otherwise false.
Example
Section titled “Example”Set oCMS = CreateObject("CapaInstaller.SDK")wscript.echo oCMS.SetInstanceManagementPoint("1")wscript.echo oCMS.ExistPackage("Winrar","v3.0","1")