CMS_RemovePackageFromUnit

Description

Removes package from the unit

Syntax

CMS_RemovePackageFromUnit(sPackage, sVersion) As Boolean

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

Parameters

sPackage (String)

Package name

sVersion (String)

Package version


Return value

Boolean, TRUE if function completed successfully.

Boolean, TRUE if function completed successfully.

Example

VBScript
If bStatus Then bStatus = CMS_IsPackageLinked("CapaInstaller", "v1.0") If bStatus And gbValue Then If bStatus Then bStatus = CMS_RemovePackageFromUnit("CapaInstaller", "v1.0") End If
PowerShell
if (CMS_RemovePackageFromUnit -package 'Lo Splendido Pacchetto IT' -version 'v1.0') { $cs.Job_WriteLog("Removed", "Lo Splendido Pacchetto IT is now unlinked") }

Scripting Guidelines

Related functions

CMS_AddPackageToUnit