Page tree
Skip to end of metadata
Go to start of metadata

Description

Adds a package to a group.


Syntax

AddPackageToGroup(Byval PackageName as String, Byval PackageVersion as String, Byval PackageType as String, Byval GroupName as String, Byval GroupType as String) as Boolean


Parameters

PackageName (String)

The name of the package.

PackageVersion (String)

The package Version.

PackageType (String)

The package type;

  • 1 (Computer) 
  • 2 (User)

GroupName (String)

The name of the group that the package should belong to

GroupType (String)

The type of group

  • "Dynamic_ADSI"
  • "Calendar" 
  • "Department"
  • "Dynamic_SQL" 
  • "Reinstall"
  • "Security" "Static"


Return value

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


Example 

VBScript
Set oCMS = CreateObject("CapaInstaller.SDK") 
wscript.echo oCMS.SetDefaultManagementPoint("1") 
wscript.echo oCMS.AddPackageToGroup("Acrobat Reader","v8.0","1","Test","Static") 



 

  • No labels