
eladef asked a question.
Detect only Server 2008 R2 ?
Hi
I have basic MSI
Any way ( with install script or system search ) I can detect ONLY Server 2008 R2 ? ( without Win 7 )

eladef asked a question.
I have basic MSI
Any way ( with install script or system search ) I can detect ONLY Server 2008 R2 ? ( without Win 7 )
Hi, I am Reva - Ask me anything.
No new updates
Thanks for the feedback!
Your feedback has been saved.Rate this response:
Add Additional feedback ( Optional )
Are you sure you want to cancel
the case creation?
Are you sure you want to cancel the case creation?
Activity: Status change: 2 hours ago
Are you sure you want to close this case
| Products | Region | Phone Numbers |
|---|---|---|
| FlexNet Operations FlexNet Embedded FlexNet Publisher FlexNet Connect FlexNet Code Insight InstallAnywhere InstallShield |
North America * |
+1 630-332-2513 (toll) +1 877-279-2853 (toll-free in North America) |
| Europe * |
+44 1925 944367 (toll) +44 800 047 8642 (toll-free in Europe) |
|
| Japan * | +81 3-4540-5335 (select option 2) | |
| Australia * |
+61 3 9895 2177 +61 1800 560 603 (toll-free in Australia) |
|
|
Usage Intelligence (formerly
Revulytics) Compliance Intelligence |
Please use the Case Portal to submit your support ticket or reach out to your Revenera contact. | |
if (SYSINFO.nISOSL = ISOSL_WIN7_SERVER2008R2) then
if SYSINFO.nOSProductType = VER_NT_WORKSTATION then
// Windows 7
else
// Windows 2008 R2
endif;
endif;
Please check following link for more information http://msdn.microsoft.com/en-us/library/ms724833
http://msdn.microsoft.com/en-us/library/aa370556(v=VS.85).aspx
You should be able to use properties VersionNT and WindowsBuild to differentiate 2008 R2 from Win7.
I refer the MSDN site, both windows7 and 2008 R2 VersionNT and WindowsBuild properties Values are same(601, greater than 7100) .
Please provide example how to differentiate using VersionNT and WindowsBuild ?
In that link, there is a comment/question regarding Windows 7 and Windows Server 2008 R2:
VersionNT and VersionNT64 are 601 for Windows 7 and Windows Server 2008 R2. Again, use MsiNTProductType to differentiate (as with Vista vs 2008).
You'll have to research what is meant by this.
http://andrewensley.com/2009/10/c-detect-windows-os-version-%E2%80%93-part-2-wmi/
I clean up the output a bit more than the example, set a property to it's results, and then use that for my comparison tests. There are a ton of different c examples out there, but a lot of them seem to have the same "VersionNT" and "MsiNTProductType" type challenges I was finding when I played with this recently. There's got to be a more elegant way :)
-Mike