# Clone Package

> Clones a package in the root point under a new version.

Source: https://docs.capaone.com/capainstaller/sdk-capainstaller-software-development-kit-functions/package-functions/clone-package/  
Product: CapaInstaller — a separate CapaSystems product; do not apply this page to any other.

## Description

Clones a Package in Root Point

## Syntax

ClonePackage(ByVal name As String, ByVal version As String, ByVal Type As String, ByVal newVersion 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)

***newVersion (String)***

The new version of a package.

## Return value

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

## Note

Script(s) will not be updated accordingly with the new version number

## Example

**VBScript**

```vb
Set oCMS = CreateObject("CapaInstaller.SDK") 
wscript.echo oCMS.SetInstanceManagementPoint("1") 
wscript.echo oCMS.ClonePackage("Winrar","v3.0","1","v4.0") 
```
