Skip to content

CMS_ExistPackageOnManagementServer

Checks if the specified package exists on the management server the agent is connected to

CMS_ExistPackageOnManagementServer(sPackage, sVersion, bMustExist) as Boolean

Name of the package

Version of the package

Should missing package make the function return false

Boolean, TRUE if function completed successfully.

If bStatus Then bStatus = CMS_ExistPackageOnManagementServer("TestPackage", "v1.0", False)
If bStatus And gbValue Then bStatus = Job_WriteLog("Custom", "Package exists", bStatus, True)

Scripting Guidelines

Constants Package Property Variables Business Unit support