cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
kalu91
Level 3

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
Level 7

 

similar to:

VersionNT

0 Kudos

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
Level 7

 

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