Import package

Description

Imports a package to CMS.


Syntax

ImportPackage(Byval FilePath as String, Byval OverrideCIPCdata as Boolean, Byval ImportFolderStructure as Boolean, Byval ImportSchedule as Boolean, Byval ChangelogComment as String) as Boolean


Parameters

FilePath (String)

Specifies a path to the zip file containing the package.

OverrideCIPCdata  (Boolean)

If the zip file contains metadata used by the Package Creator, setting this to true will override these metadata if any already exists in the CMS database.

ImportFolderStructure (Boolean)

Determines wether or not the folder structure will be imported from the exported package.
If this is true, the package will be placed in the folder it was located in, when it was exported. Any folders in that structure that doesn't already exist, will be created in CMS.

ImportSchedule (Boolean)

Determines wether or not the schedule will be imported from the package.

ChangelogComment (String)

A comment that will be added to the changelog for the package.


Return Value

Boolean. The function returns true if the import succeeds, otherwise false.


Example

VBScript
Set oCMS = CreateObject("CapaInstaller.SDK") 
wscript.echo oCMS.SetDefaultManagementPoint("1") 
wscript.echo oCMS.ImportPackage("C:\Packages\package_v1.0.zip", True, True, True, "Imported with the SDK")