CMS_GetPackageStatus
Description
Section titled “Description”Returns the status of the specified package for the unit, as registered in CapaInstaller. Examples of values are ‘Installed’, ‘Installing’, ‘Waiting’, ‘Failed’, ‘NotCompliant’ and ‘Uninstall’. ‘Not scheduled’ indicates that the package is not linked to the unit, and ‘Package not found’ indicates that the package doesn’t exist.
Syntax
Section titled “Syntax”CMS_GetPackageStatus(sPackage, sVersion) As Boolean[string] CMS_GetPackageStatus -package <string> -version <string>Parameters
Section titled “Parameters”sPackage (String)
Section titled “sPackage (String)”Name of package
sVersion (String)
Section titled “sVersion (String)”Version of package
Return value
Section titled “Return value”Boolean, TRUE if function completed successfully. The result will be stored in gsValue
Result will be returned as the result of the function.
Example
Section titled “Example”If bStatus Then bStatus = CMS_GetPackageStatus("CapaInstaller", "v1.0")If bStatus Then bStatus = Job_WriteLog("Custom", "gsValue: " & gsValue, bStatus, True)$status = CMS_GetPackageStatus 'AutoCad 11' 'v1.0'$cs.Job_WriteLog("Status:", "The AutoCad 11 package status is $status")
#Expected output:2023-11-19 23:13:04 - Status: The AutoCad 11 package status is Installed