Exist package
Description
Section titled “Description”Verifies if a package exists in specified 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 successful, otherwise false.
Example
Section titled “Example”VBScript
Set oCMS = CreateObject("CapaInstaller.SDK")wscript.echo oCMS.SetDefaultManagementPoint("1")wscript.echo oCMS.ExistPackage("Winrar","v3.0","1")