Clone Device Application
Description
Section titled “Description”This function is used to clone an existing Device Application and its payloads.
Syntax
Section titled “Syntax”Public Function CloneDeviceApplication(DeviceApplicationId As Integer, NewName As String, ChangelogComment As String) As BooleanParameters
Section titled “Parameters”Return value
Section titled “Return value”Returns a boolean value. True if succeeded, false if not.
Example
Section titled “Example”VBScript
Set oCMS = CreateObject("CapaInstaller.SDK")Wscript.echo oCMS.SetDefaultManagementPoint("2")
Dim iDeviceApplicationId : iDeviceApplicationId = 153Dim 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)