Getenvironmentvariable; Removesandboxonexit; Setenvironmentvariable - VMware THINAPP 4.6 Manual

Hide thumbs Also See for THINAPP 4.6:
Table of Contents

Advertisement

ThinApp User's Guide

GetEnvironmentVariable

The GetEnvironmentVariable(Name) function returns the environment variable associated with the Name 
variable.
Parameters
Name 
[in] The name of the environment variable for which the value is retrieved.
Returns
This function returns the string value associated with the Name environment variable.
Examples
MsgBbox "The package source EXE is " + GetEnvironmentVariable("TS_ORIGIN")

RemoveSandboxOnExit

The RemoveSandboxOnExit(YesNo) function set toggles that determine whether to delete the sandbox when 
the last child process exits. 
If you set the RemoveSandboxOnExit parameter to 1 in the Package.ini file, the default cleanup behavior for 
the package with is Yes. You can change the cleanup behavior to No by calling RemoveSandboxOnExit with 
the value of 0. If you do not modify the RemoveSandboxOnExit=1 entry in the Package.ini file, the default 
cleanup behavior for the package is No. You can change the cleanup behavior to Yes by calling 
RemoveSandboxOnExit with the value of 1.
Parameters
Yes No
[in] Do you want to clean up when the last process shuts down? 1=Yes, 0=No 
Examples
The following example turns on cleanup.
RemoveSandboxOnExit 1
The following example turns off cleanup.
RemoveSandboxOnExit 0

SetEnvironmentVariable

The SetEnvironmentVariable(Name, Value) function set the value of an environment variable.
Parameters
Name
[in] The name of the environment variable to store the value.
Value
[in] The value to store.
Examples
SetEnvironmentVariable "PATH", "C:\Windows\system32"
124
VMware, Inc.

Advertisement

Table of Contents
loading

Table of Contents