Skip to content

CMS\_RemovePackageFromUnit

Removes package from the unit

:vb: CMS_RemovePackageFromUnit(sPackage, sVersion) As Boolean

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

sPackage (String)

Package name

sVersion (String)

Package version

:vb: Boolean, TRUE if function completed successfully.

:ps: Boolean, TRUE if function completed successfully.

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
if (CMS_RemovePackageFromUnit -package 'Lo Splendido Pacchetto IT' -version 'v1.0') {
$cs.Job_WriteLog("Removed", "Lo Splendido Pacchetto IT is now unlinked")
}

Scripting Guidelines

CMS_AddPackageToUnit