Import package
Description
Section titled “Description”Imports a package to CMS.
Syntax
Section titled “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
Section titled “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
Section titled “Return Value”Boolean. The function returns true if the import succeeds, otherwise false.
Example
Section titled “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")