Download VMware ThinApp User`s Manual

Transcript
Appendix E Using Scripts
MINOR is one of the following values
Windows Vista
0
Windows Server 2008
0
Windows Server 2003 2 Windows XP 1 Windows 2000 0 Windows NT 4.0 0 Windows NT 3.51 51 BUILD_NUMBER is the build number of the OS.
PLATFORM_ID is one of the following values.
Value = 1 for Windows Me, Windows 98, or Windows 95 (Windows 95 based OS)
Value = 2 for Windows Server 2003, Windows XP, Windows 2000, or Windows NT. (Windows NT based OS) OS_STRING Represents additional information about the OS such as “Service Pack 2” Example
if GetOSVersion() = "5.1.0.2 Service Pack 2"
then MsgBox "You are running on Windows XP Service Pack 2!"
endif
GetEnvironmentVariable
Function GetEnvironmentVariable(Name)
This function returns the environment variable associated with variable name Name.
Parameters
Name
[in] The name of the environment variable for which the value is to be retrieved.
Returns
This function returns the string value associated with the environment variable “name.” VMware, Inc.
153