4.5

Table Of Contents
VMware, Inc. 99
Chapter 7 Creating ThinApp Snapshots and Projects from the Command Line
Displaying the Contents of a Snapshot File
Thesnapshot.exeutilityliststhecontentsofthesnapshotfile.
Usage
snapshot.exe SnapshotFileName.snapshot -Print
Examples
Snapshot Start.snapshot –Print
ThinApprequiresalloftheparameters.
Sample snapshot.exe Commands
Table 71describessamplecommandsforthesnapshot.exeutility.Theparametersarenotcasesensitive.
ThecommandsarewrappedintheCommandcolumnbecauseofspacerestraints.
Create a Project Without the Setup Capture Wizard
Youcanusethesnapshot.exeutilityfromthecommandlineinsteadofusingtheSetupCapturewizardthat
runsthesnapshot.exeutilityinthebackground.Thecommandlineutilityisusefultopackagealarge
numberofapplicationsorautomateThinAppprojectcreation.Thetypicallocationofthesnapshot.exe
utilityis
C:\Program Files\VMware\VMware ThinApp\snapshot.exe.
Thesnapshotprocessmakesacopyoftheallregistryentriesonthesystemandfilesystemmetadata.
File systemmetadataincludespath,filename,attribute,size,andtimestampinformationbutexcludesactual
filedata.
To create a project with the snapshot.exe command-line utility
1 Saveaninitialsnapshotofthecurrentmachineconfigurationtodisk.
snapshot.exe C:\Start.snapshot
2Installtheapplicationandmakeanynecessarymanualsystemchanges.
Table 7-1. snapshot.exe Sample Commands
Command Description
snapshot C:\Capture.snapshot Capturesacompletesnapshotoflocaldrivesand
registrytothefileC:\Capture.snapshot.
snapshot C:\Capture.snapshot C:\ E:\ CapturesacompletesnapshotoftheC:\andE:\drives.
ThinAppdoesnotcaptureregistryinformation.
snapshot C:\Capture.snapshot C:\data.snapshot
C:\ HKEY_LOCAL_MACHINE
CapturesacompletesnapshotoftheC:\driveandallof
theHKEY_CLASSES_ROOTregistrysubtree.
snapshot C:\Original.snapshot -Diff
C:\NewEnvironment.snapshot C:\MyProject
GeneratesaThinAppproject
directorybycomparing
twosnapshots.
snapshot Original.snapshot -DiffPrint
NewEnvironment.snapshot
Displaysdifferencesbetweentwocapturedsnapshots.
snapshot C:\data.snapshot C:\ HKEY_LOCAL_MACHINE Savesthestateofthecomputerfilesystemandregistry.
snapshot C:\start.snapshot -diffprint
C:\end.snapshot
Comparestworecordedstates.
snapshot C:\start.snapshot -print Printsthecontentsofasavedstate.
snapshot C:\start.snapshot -SuggestProject
C:\end.snapshot C:\project.ini
GeneratesaThinAppprojectbycomparingtwosaved
states.