View Single Post
Old 14th July 2008, 12:44   #29
Hywkar
Junior Member
 
Join Date: Jul 2008
Posts: 1
Is there an easy way to detect if the operating system is windows server 2000? I tried the latest release and on windows 2000 server it gives me "Windows 2000 version 5.0 (Type : Professional, Server Name : )".


code:

GetVersion::WindowsName
Pop $0
GetVersion::WindowsType
Pop $1
GetVersion::WindowsServerName
Pop $2
GetVersion::WindowsVersion
Pop $3

DetailPrint "Windows $0 version $3 (Type : $1, Server Name : $2)"

Hywkar is offline   Reply With Quote