Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Current »

Description

Uninstalls package from unit

Syntax

(blue star) CMS_UninstallPackageFromUnit(sID as string) As Boolean

(blue star) [bool]CMS_UninstallPackageFromUnit -packageid <string>

Parameters

sID (String)

ID of the package (JobId from the JOB table)

Return value

(blue star) Boolean, TRUE if function completed successfully.

(blue star) Boolean, TRUE if function completed successfully. 

Example

(blue star) VBScript
If bStatus Then bStatus = CMS_UninstallPackageFromUnitById("126")
(blue star) PowerShell
if (CMS_UninstallPackageFromUnitById '126') {
  $cs.Job_WriteLog("Uninstall", "Package (126) will be uninstalled")
}

Scripting Guidelines

Related functions

CMS_UninstallPackageFromUnit

  • No labels