Skip to content

CMS_GetUninstallSource

Returns which source has initiated the uninstall. License Consolidation or Administrative tool. Use it in the uninstall script of a package.

CMS_GetUninstallSource(sPackage) as Boolean

Not supported

Name of the package that is being uninstalled, for example gsJobName.

Boolean, TRUE if function completed successfully. The result will be stored in gsValue and it will be either ‘lc’ (License Consolidation) or ‘console’ (any other source)

If bStatus Then bStatus = CMS_GetUninstallSource(gsJobName)
If bStatus Then xStatus = Job_WriteLog("Custom", "gsValue: " & gsValue, bStatus, True)

Scripting Guidelines

Constants Package Property Variables Business Unit support