Skip to content

Export package

Exports a package to the specified folder.

ExportPackage(Byval PackageName as String, Byval PackageVersion as String, Byval PackageType as String, Byval ToFolder as String) as Boolean

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. If the folder doesn’t exist, it’s created.

The package is saved as a zip file named <PackageName>_<PackageVersion>.zip, for example Winrar_v3.0.zip. The zip file contains the package files and the package properties, folder structure, and schedule. If the package was made with the Package Creator, the Package Creator data is included too. You can import it with Import package.

Boolean. The function returns True if successful, otherwise false.

Set oCMS = CreateObject("CapaInstaller.SDK")
wscript.echo oCMS.SetInstanceManagementPoint("1")
wscript.echo oCMS.ExportPackage("Winrar","v3.0","1","C:\Test")