Skip to content

Promote Package

Promotes a package from the current management point to its child management point.

  • If the package doesn’t exist on the child point, it’s created there. If it already exists, it’s updated.
  • The package keeps its folder structure on the child point.
  • The package is linked to the replica management servers on the child point.
  • The package files are copied to the child point.

Public Function PackagePromote(ByVal packageName As String, ByVal packageVersion As String, ByVal packageType As String) As Boolean

PackageName (String)

The name of the package

PackageVersion (String)

The version of the package, i.e.: “v1.0”. If empty, “v1.0” is used.

PackageType (String)

Type of package

  • “Computer”
  • “User”

If empty, “Computer” is used.

Boolean. The function returns true if successful, otherwise false. It returns false if the package isn’t found or the current management point has no child point.

VBScript

Set oCMS = CreateObject("CapaInstaller.SDK")
wscript.echo oCMS.SetInstanceManagementPoint("1")
wscript.echo oCMS.PackagePromote("Mozilla Firefox 76.0 EN","v1.0","Computer")