Delete Package
Description
Section titled “Description”Deletes a package from the root point.
Syntax
Section titled “Syntax”Public Function DeletePackage(ByVal PackageName As String, ByVal PackageVersion As String, ByVal UnitType As String, ByVal Force As Boolean) As Boolean
Parameters
Section titled “Parameters”PackageName (String)
The name of the package.
PackageVersion (String)
The package Version.
PackageType (String)
The package type;
- 1 (Computer)
- 2 (User)
Force (Boolean)
Force deletion of the package regardless of any linked units, groups, or business units
Return Value
Section titled “Return Value”Boolean. The function returns true if the package is deleted, otherwise false.
Example
Section titled “Example”VBScript
java<br/>Set oCMS = CreateObject("CapaInstaller.SDK")<br/>wscript.echo oCMS.SetDefaultManagementPoint("1")<br/>wscript.echo oCMS.DeletePackage("Winrar","v3.0","1",True)<br/><br/> |
Available from
Section titled “Available from”CapaInstaller 6.2, build 100