Remove package from group
Description
Removes a package from a group.
Syntax
RemovePackageFromGroup(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)
Package version
PackageType (String)
Type of package
- "Computer"
- "User"
GroupName (String)
Name of the group
GroupType (String)
Group tupe;
- "Dynamic_ADSI"
- "Calendar"
- "Department"
- "Dynamic_SQL"
- "Reinstall"
- "Security"
- "Static"
Return Value
Boolean. The function returns true if it succeeds, otherwise false.
Example
VBScript
Set oCMS = CreateObject("CapaInstaller.SDK") wscript.echo oCMS.SetDefaultManagementPoint("1") wscript.echo oCMS.RemovePackageFromGroup("Acrobat Reader","v8.0","User","Test","Static")