cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
kalu91
Flexera beginner

How to distinguish between windows server 2012 R2 and Windows Server 2016/2019

Hi all,

I'm trying to create install condition with installshield 2019 so that it installs only on Windows Server 2016 and Windows Server 2019 and NOT on Windows Server 2012 R2.
I try with this one:
(Not Version9X) And (VersionNT = 603 And MsiNTProductType <> 1)

Because I have found that Version NT on Windows Server 2012 is 602 (https://docs.microsoft.com/it-it/windows/win32/msi/operating-system-property-values), but in InstallShield log file I saw that in reality this property is enhanced with 603 and not 602.
Which property (s) can I use to discriminate Windows Server 2012 R2 from other operating systems?
I have seen that VersionNT, VersionNT64 and WindowsBuild have the same value in all three operating systems.

Labels (1)
0 Kudos
3 Replies
Roman2
Active participant

Re: How to distinguish between windows server 2012 R2 and Windows Server 2016/2019

 

similar to:

VersionNT

0 Kudos
kalu91
Flexera beginner

Re: How to distinguish between windows server 2012 R2 and Windows Server 2016/2019

Thank you, but I have already read this topic but in my case I have same values for each 3 properties (VersionNt, VersionNT64 and WindowsBuil) in each Operating System.
0 Kudos
Roman2
Active participant

Re: How to distinguish between windows server 2012 R2 and Windows Server 2016/2019

 

I have also checked WindowsBuild property on Server 2016 and Server 2019 and both returned with incorrect 9600 value.
The easiest way to use System Search to search ProductName or CurrentBuildNumber or any other Registry entries in 
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion and stores value as new Property (NEWPROPERTY). See the following article Workaround section to use System search. https://community.flexera.com/t5/InstallShield-Knowledge-Base/Identifying-Windows-10-with-MSI/ta-p/4166 Add a new public property in the Property Manager (e.g.: NEWPROPERTY) then use this property in System Search.

 

0 Kudos