Promote Package
Description
Section titled “Description”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.
Syntax
Section titled “Syntax”Public Function PackagePromote(ByVal packageName As String, ByVal packageVersion As String, ByVal packageType As String) As Boolean
Parameters
Section titled “Parameters”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.
Return value
Section titled “Return value”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.
Example
Section titled “Example”VBScript
Set oCMS = CreateObject("CapaInstaller.SDK")wscript.echo oCMS.SetInstanceManagementPoint("1")wscript.echo oCMS.PackagePromote("Mozilla Firefox 76.0 EN","v1.0","Computer")