Create package
Description
Section titled “Description”Creates a package on the current management point.
- The management point must be a root point.
- You need administrator rights to packages on the management point.
- The package is created as non-mandatory and non-interactive.
- The package is linked to the replica management servers on the management point.
The function fails if a package with the same name, version, and type already exists.
Syntax
Section titled “Syntax”CreatePackage(Byval PackageName as String, Byval PackageVersion as String, Byval UnitType as String, Byval DisplayName as String) as Boolean
Parameters
Section titled “Parameters”PackageName (String)
The name of the package.
PackageVersion (String)
The package Version.
UnitType (String)
The unit type;
- “Computer” or 1
- “User” or 2
DisplayName (String)
The name that the end user is presented with
Return value
Section titled “Return value”Boolean. The function returns True if successful, otherwise false.
Example
Section titled “Example”Set oCMS = CreateObject("CapaInstaller.SDK")wscript.echo oCMS.SetInstanceManagementPoint("1")wscript.echo oCMS.CreatePackage("MSOfficeDK_2012","v12.0","Computer","MicroSoft Office Version 12 (DK)")