5.1

Table Of Contents
VMware, Inc. 91
Chapter 8 Creating ThinApp Scripts
SetfileSystemIsolation
The SetfileSystemIsolation(Directory, IsolationMode) function sets the isolation mode of a
directory.
Parameters
Directory
[in] Full path of the directory whose isolation mode is to be set.
IsolationMode
[in] Isolation mode to set.
1 = WriteCopy
2 = Merged
3 = Full
Examples
You can set the Merged isolation mode for the temp directory.
Setfile systemIsolation GetEnvironmentVariable("TEMP"), 2
SetRegistryIsolation
The SetRegistryIsolation(RegistryKey, IsolationMode) function sets the isolation mode of a registry
key.
Parameters
RegistryKey
[in] The registry key on which to set the isolation mode. Start with HKLM for HKEY_LOCAL_MACHINE, HKCU for
HKEY_CURRENT_USER, and HKCR for HKEY_CLASSES_ROOT.
IsolationMode
[in] Isolation mode to set.
1 = WriteCopy
2 = Merged
3 = Full
Examples
You can set the Full isolation mode for HKEY_CURRENT_USER\Software\Thinapp\Test.
SetRegistryIsolation "HKCU\Software\Thinapp\Test," 3
WaitForProcess
The WaitForProcess(ProcessID, TimeOutInMilliSeconds) function waits until the process ID is
finished running.
Parameters
ProcessID
[in] The process ID to end. The process ID can come from ExecuteExternalProcess or
ExecuteVirtualProcess.
TimeOutInMilliSeconds
[in] The maximum amount of time to wait for the process to finish running before continuing. A value of 0
specifies INFINITE.