Skip to content

Clone Device Application

This function is used to clone an existing Device Application and its payloads.

Public Function CloneDeviceApplication(DeviceApplicationId As Integer, NewName As String, ChangelogComment As String) As Boolean

Returns a boolean value. True if succeeded, false if not.

VBScript

Set oCMS = CreateObject("CapaInstaller.SDK")
Wscript.echo oCMS.SetDefaultManagementPoint("2")
Dim iDeviceApplicationId : iDeviceApplicationId = 153
Dim sNewName : sNewName = "New cloned App"
Dim sChangelogComment : sChangelogComment = "Cloned App with sdk"
Wscript.echo "Cloning Device App: " & oCMS.CloneDeviceApplication(iDeviceApplicationId, sNewName, sChangelogComment)
sNewName = "New cloned App2"
Wscript.echo "Cloning Device App: " & oCMS.CloneDeviceApplication(iDeviceApplicationId, sNewName, sChangelogComment)