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")
}
Related functions
, multiple selections available,
Related content
CMS_RemovePackageFromUnit
CMS_RemovePackageFromUnit
More like this
CMS_AddPackageToUnit
CMS_AddPackageToUnit
More like this
CMS_GetPackageStatus
CMS_GetPackageStatus
More like this
$cs.Reg_DelTree
$cs.Reg_DelTree
More like this
$cs.Reg_EnumKey
$cs.Reg_EnumKey
More like this
$cs.Job_Start
$cs.Job_Start
More like this