EasyManua.ls Logo

VMware THINAPP 4.6 - Getosversion

VMware THINAPP 4.6
146 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
VMware, Inc. 123
Chapter 9 Creating ThinApp Scripts
GetOSVersion
TheGetOSVersion()functionreturnsinformationaboutthecurrentversionofWindows.
Parameters
Thisfunctionhasnoparameters.
Returns
ThisfunctionreturnsastringintheMAJOR.MINOR.BUILD_NUMBER.PLATFORM_ID OS_STRINGformat.
MAJORisonethefollowingvalues:
MINORisoneofthefollowingvalues:
BUILD_NUMBERisthebuildnumberoftheoperatingsystem.
PLATFORM_IDassignsoneofthefollowingvalues:
Value = 1forWindowsMe,Windows98,orWindows95(Windows95basedOS)
Value = 2forWindowsServer2003,WindowsXP,Windows2000,orWindowsNT.(WindowsNT
based OS)
OS_STRINGrepresentsinformationabouttheoperatingsystemsuchasService Pack 2.
Examples
if GetOSVersion() = "5.1.0.2 Service Pack 2"
then MsgBox "You are running on Windows XP Service Pack 2!"
endif
WindowsVista 6
WindowsServer2008 6
WindowsServer2003 5
WindowsXP 5
Windows2000 5
WindowsNT4.0 4
WindowsVista 0
WindowsServer2008 0
WindowsServer2003 2
WindowsXP 1
Windows2000 0
WindowsNT4.0 0
WindowsNT3.51 51

Table of Contents

Related product manuals