CMS_UninstallPackageFromUnit

Description

Uninstalls package from unit

Syntax

CMS_UninstallPackageFromUnit(sPackage, sVersion) As Boolean

[bool]CMS_UninstallPackageFromUnit -package <string> -version <string>

Parameters

sPackage (String)

Name of package

sVersion (String)

Version of package

Return value

Boolean, TRUE if function completed successfully.

Boolean, TRUE if function completed successfully.

Example

VBScript
If bStatus Then bStatus = CMS_UninstallPackageFromUnit("CapaInstaller", "v1.0")
PowerShell
if (CMS_UninstallPackageFromUnit -package 'Pacman for Windows 1.1' -version 'v1.0') { $cs.Job_WriteLog("Uninstall", "Pacman for Windows 1.1 will now be uninstalled") }

Scripting Guidelines

Related functions