Add Package to BusinessUnit
Description
Section titled “Description”Adds a package to a Business Unit.
Syntax
Section titled “Syntax”Public Function AddPackageToBusinessUnit(ByVal packageName As String, ByVal packageVersion As String, ByVal packageType As String, ByVal businessUnitName As String) 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)
BusinessUnitName (String)
The name of the business unit
Return Value
Section titled “Return Value”Boolean. The function returns true if the package is added to the business unit, otherwise false.
Example
Section titled “Example”VBScript
java<br/>Set oCMS = CreateObject("CapaInstaller.SDK")<br/>wscript.echo oCMS.SetDefaultManagementPoint("1")<br/>wscript.echo oCMS.AddPackageToBusinessUnit("Winrar","v3.0","1","HeadQuarterBronx")<br/><br/><br/> |
Available from
Section titled “Available from”CapaInstaller 6.2, build 100