Results 1 to 4 of 4

Thread: How to detect Windows 2003 Server Standard Edition

  1. #1
    Join Date
    Nov 2007
    Posts
    44

    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

  2. #2
    Join Date
    Oct 2001
    Location
    Here and there
    Posts
    16,233
    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.
    Robert Dickau - This and That - Flexera Software

    Want help? See Windows Installer white papers, training courses, newsletters, HelpNet, forum search, Knowledge Base, ...
    Want more help?
    See our InstallTalk blog.
    Want even more help? See our relatively new Advanced Windows Installer (MSI) training course.

  3. #3
    Join Date
    Nov 2007
    Posts
    44
    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.

  4. #4
    Join Date
    Oct 2001
    Location
    Here and there
    Posts
    16,233
    Perhaps try to join the two pieces with logical-and (&&):

    (SYSINFO.WINNT.bWinServer2003) && (SYSINFO.nSuites & ISOS_ST_ENTERPRISE)
    Robert Dickau - This and That - Flexera Software

    Want help? See Windows Installer white papers, training courses, newsletters, HelpNet, forum search, Knowledge Base, ...
    Want more help?
    See our InstallTalk blog.
    Want even more help? See our relatively new Advanced Windows Installer (MSI) training course.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •