-
How to detect Windows 2003 Server Standard Edition
Hi
In a project I'm developing I have to allow to install a module only if the OS is Windows 2003 Server Enterprise Edition and not to allow the install if the OS is Windows 2003 Server Standard Edition.
I detect Windows 2003 Server by using (SYSINFO.nWinMajor = 5 && SYSINFO.nWinMinor = 2) but how do I detect witch Edition ?
Thanks
Bianca
-
You might see if SYSINFO.nSuites or other SYSINFO fields can help; the MSDN help for OSVERSIONINFOEX (there's a link on the SYSINFO help topic) describes combinations that describe various OS varieties.
-
Hi
Found (SYSINFO.nSuites & ISOS_ST_ENTERPRISE) and (SYSINFO.nSuites & ISOS_ST_DATACENTER) ... but I don't find for STANDARD EDITION.
Why doesn't this work ? (SYSINFO.WINNT.bWinServer2003 = TRUE) & (SYSINFO.nSuites & ISOS_ST_ENTERPRISE) ? It doesn't detect Win2003 server enterprise edition .... if I use only (SYSINFO.nSuites & ISOS_ST_ENTERPRISE) it detects that it is an enterprise edition.
Thanks
Last edited by rootme; 12-07-2007 at 03:17 AM.
-
Perhaps try to join the two pieces with logical-and (&&):
(SYSINFO.WINNT.bWinServer2003) && (SYSINFO.nSuites & ISOS_ST_ENTERPRISE)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules