Home > Blogs > VMware ThinApp Blog

Custom Use of Snapshot files

Ever wanted to keep an existing snapshot for later use? Below is a summary of the actions required to copy a .snapshot file and use it again. Keep in mind, this is an advanced technique and is used in particular circumstances. It’s always recommended that use you the Snapshot feature of VMware Workstation to revert your capture desktop back to a clean environment.

Use Case:

Sometimes it is desired to run a post scan again when making changes to a capture workstation. Once you have completed a capture and built and .exe, you may wish to return the capture desktop and affect a change that would require you to run a post-scan again and write out a new project.

Things to Know:

You will need to understand some basic behavior of the Setup Capture routine in order to keep certain files for later use. When Setup Capture runs, it will create and delete files on the fly. These instructions will show you how to keep and execute against the files again if required. These instructions are not a replacement for the manual snapshot.exe process outlined in the products documentation.

Setup Capture #1:

When you run Setup Capture.exe and create a pre-scan, look in the “C:\Program Files\VMware\VMware ThinApp” folder for the snapshot file you just created. The file will have a naming convention similar to {6324CF0F-CC54-4A17-B9C5-34D43982378B}.snapshot. Copy this file out to another location and change the name to something that will easily identify it, like prescan.snaphot. Now that you have a copy of the pre-scan, you will be able to use this in the before mentioned use case to run a post-scan on your capture workstation in order to generate a new project.

Setup Capture #2:

With you copied pre-scan snapshot, use the following command line to force Setup Capture to run against the file and generate a new project for you.

“C:\Program Files\VMware\VMware ThinApp\Setup Capture.exe” “C:\Path to File\prescan.snapshot” “C:\ HKEY_LOCAL_MACHINE HKEY_USERS”

Be sure to show the path to the Setup Capture and your Pre-Scan based on your own configuration.

Once this is running, you will be taken to the point in the Setup Capture process which will allow you to successfully complete a new post-scan and project build.