Export package
Description
Exports a package to the specified folder.
Syntax
ExportPackage(Byval PackageName as String, Byval PackageVersion as String, Byval PackageType as String, Byval ToFolder as String) as Boolean
Parameters
PackageName (String)
The name of the package.
PackageVersion (String)
The package Version.
PackageType (String)
The package type;
- 1 (Computer)Â
- 2 (User)
ToFolder (String)
The folder to which the package is to be exported to.
Return value
Boolean. The function returns True if successful, otherwise false.
ExampleÂ
VBScript
Set oCMS = CreateObject("CapaInstaller.SDK") wscript.echo oCMS.SetDefaultManagementPoint("1") wscript.echo oCMS.ExportPackage("Winrar","v3.0","1","C:\Test")
Â