CMS_GetUninstallSource
Description
Section titled “Description”Returns which source has initiated the uninstall. License Consolidation or Administrative tool. Use it in the uninstall script of a package.
Syntax
Section titled “Syntax”CMS_GetUninstallSource(sPackage) as Boolean
Not supported
Parameters
Section titled “Parameters”sPackage (String)
Section titled “sPackage (String)”Name of the package that is being uninstalled, for example gsJobName.
Return value
Section titled “Return value”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)
Example
Section titled “Example”If bStatus Then bStatus = CMS_GetUninstallSource(gsJobName)If bStatus Then xStatus = Job_WriteLog("Custom", "gsValue: " & gsValue, bStatus, True)