Skip to content

Get package groups

Gets groups linked to the specified package.

GetPackageGroups(Byval PackageName as String, Byval PackageVersion as String, Byval PackageType as String) as ArrayList

PackageName (String)

The name of the package

PackageVersion (String)

The version of the package

PackageType (String)

The type of package

  • “1” (Computerjob)
  • “2” (Userjob)

An arraylist, containing requested package groups are returned. Each element in the array is a joined line with the character defined with Set splitter.

Each joined line (j) consists of these variables;

  • j.Name
  • j.Type
  • j.unitType.ID
  • j.Description
  • j.GUID
  • j.ID

VBScript

Set oCMS = CreateObject("CapaInstaller.SDK")
Set aUnit = CreateObject("System.Collections.ArrayList")
wscript.echo oCMS.SetDefaultManagementPoint("1")
Set aUnit = oCMS.GetPackageGroups("Nod32","3.0669.0","1")
for each item in aUnit
wscript.echo item
next