Skip to content

CMS_AddPackageToUnit

Adds the specified package to the unit on which the script is being executed. The package is linked to the unit in CapaInstaller, and the agent then handles it like any other linked package.

The package must be a computer package that exists on the same point as the unit. If the package is already linked to the unit, nothing is changed.

CMS_AddPackageToUnit(sPackage, sVersion) as Boolean

Package name

Package version

Boolean. True if the package was linked or was already linked. False if the package can’t be found.

If bStatus Then bStatus = CMS_AddPackageToUnit("CapaInstaller", "v1.0")

Scripting Guidelines

CMS_RemovePackageFromUnit Constants Package Property Variables Business Unit support