CMS_RemovePackageFromUnit
Description
Section titled “Description”Removes package from the unit
Syntax
Section titled “Syntax”CMS_RemovePackageFromUnit(sPackage, sVersion) As Boolean[bool]CMS_RemovePackageFromUnit -package <string> -version <string>Parameters
Section titled “Parameters”sPackage (String)
Section titled “sPackage (String)”Package name
sVersion (String)
Section titled “sVersion (String)”Package version
Return value
Section titled “Return value”Boolean, TRUE if function completed successfully.
Boolean, TRUE if function completed successfully.
Example
Section titled “Example”If bStatus Then bStatus = CMS_IsPackageLinked("CapaInstaller", "v1.0")If bStatus And gbValue Then If bStatus Then bStatus = CMS_RemovePackageFromUnit("CapaInstaller", "v1.0")End Ifif (CMS_RemovePackageFromUnit -package 'Lo Splendido Pacchetto IT' -version 'v1.0') { $cs.Job_WriteLog("Removed", "Lo Splendido Pacchetto IT is now unlinked")}Related functions
Section titled “Related functions”CMS_AddPackageToUnit Constants Package Property Variables Business Unit support