To update an existing application which has been captured, use the /s argument in the appcapture.exe command. The command-line capture program creates a copy of the existing package's disk (.vhd format) and updates the disk.
You can use the /noauto argument with /new and /end. For more information about these and other command-line arguments, see Windows Command-Line Arguments for the App Volumes Application Capture Command-Line Program. Alternately, you can use appcapture.exe /help on the command line.
Prerequisites
-
Ensure that you perform this task on a clean virtual machine.
-
Ensure that the User Account Control (UAC) in Windows is deactivated.
To deactivate UAC, see Microsoft Windows documentation. -
You must run the command-line capture program as administrator.
-
Do not use the command-line capture program's executable located at
C:\Program Files (x86)\CloudVolumes\Agent.
This copy of the executable is meant for internal purpose only. -
Ensure that you have the path of the
.vhdfile of the existing, captured application.
This path is used as the source when starting the capture session.
See Capture an App Volumes Application. -
Ensure that you have downloaded the installer of the application that needs to be updated.
-
Ensure that you are aware of the command-line arguments that can be used with the
appcapture.execommand.
Procedure
-
Take a snapshot of your virtual machine.
You can revert to the snapshot after the capture session.
-
Open a command-line window.
-
Update the existing application package from the location where the command-line capture program is installed by using the following command:
appcapture.exe /new <package_name> /s <source_vhd_filepath>.-
package_name - name of the application package that is updated.
Important: package_name must be different from the name provided during the application's initial capture session.
-
source_vhd_filepath is the source path of the captured application's
.vhdfile.
-
-
Install the application updates.
-
If your application install requires a virtual machine reboot, perform the reboot or wait for the reboot to complete.
The command-line capture program session automatically restarts.
-
-
Finish the capture session by using the following command:
appcapture.exe /end.Machine reboots and the command-line capture program session automatically restarts.
This completes the update process and the application package is created in the
vhdand.vmdkformats. -
Ensure that the following outputs
package_name.vhd,package_name_workstation.vmdk, andpackage_name.jsonare generated at\AppCapture\appvhds, whereAppCaptureis present in one of the subfolders withinC:\ProgramData. -
Revert to the virtual machine's snapshot taken before you started the capture session.
What to do next
-
To import the
*_workstation.vmdkpackage into App Volumes Manager, place the.vmdkand.jsonfiles on the App Volumes Manager server at<installation_directory>\CloudVolumes\Manager\ppv\packagesand upload these files to the desired datastore from the Storage page in the admin UI.For more information about uploading these files, see Upload Templates.
-
To import the
.vhdapplication package into App Volumes Manager, copy the package (including the.jsonfile) to a file share and follow the Import an Application to App Volumes procedure.
After the package is successfully imported into App Volumes Manager, you can assign the application and deliver the package to the end users.
Was this page helpful?