CMS_UninstallPackageFromUnit
Description
Section titled “Description”Uninstalls package from unit. The status of the package for the unit is set to Uninstall in CapaInstaller, and the agent uninstalls the package.
The package must be a computer package that is linked to the unit. Otherwise, the function fails.
Syntax
Section titled “Syntax”CMS_UninstallPackageFromUnit(sPackage, sVersion) As Boolean[bool]CMS_UninstallPackageFromUnit -package <string> -version <string>Parameters
Section titled “Parameters”sPackage (String)
Section titled “sPackage (String)”Name of package
sVersion (String)
Section titled “sVersion (String)”Version of package
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_UninstallPackageFromUnit("CapaInstaller", "v1.0")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")}