The RemoveSandboxOnExit parameter deletes the sandbox and resets the application when the last child process exits.
ThinApp stores all application changes to the registry and file system locations with WriteCopy or Full isolation mode in the sandbox. ThinApp sets an initial value for theRemoveSandboxOnExit parameter that maintains consistent settings for the sandbox directory across multiple application runs.
If the application creates child processes, ThinApp does not delete the sandbox until all child processes exit. Applications might be designed to leave child processes in place, which can block the cleanup operation. For example, Microsoft Office 2003 leaves the ctfmon.exe process. You can use a script to end the ctfmon.exe process and child processes to force the cleanup operation to occur.
You can decide at runtime whether to use the RemoveSandboxOnExit script API function to delete the sandbox on exit.
Modifying the RemoveSandboxOnExit Parameter
You can modify the RemoveSandboxOnExit to delete the sandbox when multiple users share an application under one user name, you can delete the sandbox to eliminate the previous user’s registry and file system changes.
[BuildOptions] RemoveSandboxOnExit=1