Skip to content

Exist package

Verifies if a package exists in specified Point

ExistPackage(ByVal name As String, ByVal version As String, ByVal Type As String) As Boolean

name (String)

The name of the package.

version (String)

The package Version.

Type (String)

The package type;

  • 1 (Computer)
  • 2 (User)

Boolean. The function returns True if successful, otherwise false.

VBScript

Set oCMS = CreateObject("CapaInstaller.SDK")
wscript.echo oCMS.SetDefaultManagementPoint("1")
wscript.echo oCMS.ExistPackage("Winrar","v3.0","1")