Returns a list of units linked to the package.
GetPackageUnits(Byval PackageName as String, Byval PackageVersion as String, Byval PackageType as String) as ArrayList
The name of the package
The version of the package
Type of package
The function returns an array of units. Each unit (unit) in the array is a joined line with the character defined with Set splitter.
Set oCMS = CreateObject("CapaInstaller.SDK") Set aUnit = CreateObject("System.Collections.ArrayList") wscript.echo oCMS.SetDefaultManagementPoint("1") Set aUnit = oCMS.GetPackageUnits("CMS4-Upgrade","v4.1","1") for each item in aUnit wscript.echo item next