5.1

Table Of Contents
VMware, Inc. 5
Contents
5 Locating the ThinApp Sandbox 67
Search Order for the Sandbox 67
Controlling the Sandbox Location 69
Store the Sandbox on the Network 69
Store the Sandbox on a Portable Device 69
Sandbox Structure 70
Making Changes to the Sandbox 70
Listing Virtual Registry Contents with vregtool 70
6 Creating ThinApp Snapshots and Projects from the Command Line 71
Methods of Using the snapshot.exe Utility 71
Creating Snapshots of Machine States 71
Creating the Template Package.ini file from Two Snapshot Files 72
Creating the ThinApp Project from the Template Package.ini File 72
Displaying the Contents of a Snapshot File 73
Sample snapshot.exe Commands 73
Create a Project Without the Setup Capture Wizard 73
Customizing the snapshot.ini File 74
Use snapshot.exe Utility to Extract a ThinApp Project 74
7 ThinApp File System Formats and Macros 77
Virtual File System Formats 77
ThinApp Folder Macros 77
List of ThinApp Macros 78
Processing %SystemRoot% in a Terminal Services Environment 79
8 Creating ThinApp Scripts 81
Callback Functions 81
Implement Scripts in a ThinApp Environment 82
.bat Example 82
Timeout Example 82
Modify the Virtual Registry 83
.reg Example 83
Stopping a Service Example 83
Copying a File Example 83
Add a Value to the System Registry 84
API Functions 85
AddForcedVirtualLoadPath 85
ExitProcess 85
ExpandPath 86
ExecuteExternalProcess 86
ExecuteVirtualProcess 87
GetBuildOption 87
GetFileVersionValue 87
GetCommandLine 88
GetCurrentProcessName 88
GetOSVersion 89
GetEnvironmentVariable 90
RemoveSandboxOnExit 90
SetEnvironmentVariable 90
SetfileSystemIsolation 91
SetRegistryIsolation 91
WaitForProcess 91