Skip to content

Exist package

Verifies if a package exists on the current management 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 the package exists, otherwise false.

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