This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: I way to distinguish between 2008R2 and windows7
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Nov 14, 2010
03:50 AM
I way to distinguish between 2008R2 and windows7
Hi
I need a way to distinguish between windows 2008R2 and windows 7.
seems like SYSINFO is not helping me.
thanks.
I need a way to distinguish between windows 2008R2 and windows 7.
seems like SYSINFO is not helping me.
thanks.
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Nov 16, 2010
02:11 PM
I used the SYSINFO.nOSMajor and SYSINFO.nOSMinor to distinguish Server 2008. I believe if you add the nOSProductType you can distinguish Windows 7.
Windows Server 2008 R2
nOSMajor = 6
nOsMinor = 1
nOSProductType = 3
Windows 7
nOSMajor = 6
nOsMinor = 1
nOSProductType = 1
Here's an article explaining how to Determine Windows Version and Edition
http://www.codeguru.com/cpp/w-p/system/systeminformation/article.php/c8973
Robert
Windows Server 2008 R2
nOSMajor = 6
nOsMinor = 1
nOSProductType = 3
Windows 7
nOSMajor = 6
nOsMinor = 1
nOSProductType = 1
Here's an article explaining how to Determine Windows Version and Edition
http://www.codeguru.com/cpp/w-p/system/systeminformation/article.php/c8973
Robert
![](/skins/images/A5EADE085F77DE82FB3B14D6B307AE6A/responsive_peak/images/icon_anonymous_message.png)