5.1

Table Of Contents
VMware, Inc. 73
Chapter 6 Creating ThinApp Snapshots and Projects from the Command Line
Displaying the Contents of a Snapshot File
The snapshot.exe utility lists the contents of the snapshot file.
Usage
snapshot.exe SnapshotFileName.snapshot -Print
Examples
Snapshot Start.snapshot –Print
ThinApp requires all of the parameters.
Sample snapshot.exe Commands
Table 6-2 describes sample commands for the snapshot.exe utility. The parameters are not case-sensitive.
The commands are wrapped in the Command column because of space restraints.
Create a Project Without the Setup Capture Wizard
You can use the snapshot.exe utility from the command line instead of using the Setup Capture wizard that
runs the snapshot.exe utility in the background. The command-line utility is useful to package a large
number of applications or automate ThinApp project creation. The typical location of the snapshot.exe
utility is C:\Program Files\VMware\VMware ThinApp\snapshot.exe.
The snapshot process makes a copy of the all registry entries on the system and file system metadata.
File system metadata includes path, filename, attribute, size, and time stamp information but excludes actual
file data.
Create a project with the snapshot.exe command-line utility
1 Save an initial snapshot of the current machine configuration to disk.
snapshot.exe C:\Start.snapshot
2 Install the application and make any necessary manual system changes.
Table 6-2. snapshot.exe Sample Commands
Command Description
snapshot C:\Capture.snapshot Captures a complete snapshot of local drives and
registry to the file C:\Capture.snapshot.
snapshot C:\Capture.snapshot C:\ E:\ Captures a complete snapshot of the C:\ and E:\ drives.
ThinApp does not capture registry information.
snapshot C:\Capture.snapshot C:\data.snapshot
C:\ HKEY_LOCAL_MACHINE
Captures a complete snapshot of the C:\ drive and all of
the HKEY_CLASSES_ROOT registry subtree.
snapshot C:\Original.snapshot -Diff
C:\NewEnvironment.snapshot C:\MyProject
Generates a ThinApp project directory by comparing
two snapshots.
snapshot Original.snapshot -DiffPrint
NewEnvironment.snapshot
Displays differences between two captured snapshots.
snapshot C:\data.snapshot C:\ HKEY_LOCAL_MACHINE Saves the state of the computer file system and registry.
snapshot C:\start.snapshot -diffprint
C:\end.snapshot
Compares two recorded states.
snapshot C:\start.snapshot -print Prints the contents of a saved state.
snapshot C:\start.snapshot -SuggestProject
C:\end.snapshot C:\project.ini
Generates a ThinApp project by comparing two saved
states.