# CMS_GetUninstallSource

> Returns which source has initiated the uninstall. License Consolidation or Administrative tool.

Source: https://docs.capaone.com/capainstaller/vb-scripting-library/cms-functions/cms-getuninstallsource/  
Product: CapaInstaller — a separate CapaSystems product; do not apply this page to any other.

### Description

Returns which source has initiated the uninstall. License Consolidation or Administrative tool

### Syntax

CMS_GetUninstallSource(sPackage) as Boolean

Not supported

### Parameters

#### sPackage (String)

Name of package

### Return value

Boolean, TRUE if function completed successfully. The result will be stored in gsValue and it will be either 'lc' or 'Console'

### Example

**VBScript**

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

```

[Scripting Guidelines](/capainstaller/vb-scripting-library/scripting-guidelines/)

### Related functions

[Constants](/capainstaller/vb-scripting-library/addendum/constants/) [Package Property](/capainstaller/vb-scripting-library/addendum/package-property/) [Variables](/capainstaller/vb-scripting-library/addendum/variables/) [Business Unit support](/capainstaller/vb-scripting-library/addendum/business-unit-support/)
