- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: VersionNT Property value in the help documentation doesn't list the values after Windows 7
- 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
VersionNT Property value in the help documentation doesn't list the values after Windows 7
Hi Support
The InstallShield help documentation doesn't list the values for Windows 7 and above. The link below: https://learn.microsoft.com/en-us/windows/win32/msi/operating-system-property-values, list the values till windows 8.1 but doesn't list the values after. For example, the version for "Windows Server 2012 R2 Standard" is not listed.
When I try to print this value for Windows 10, it shows "603". We would like to get this value in our InstallScript custom action code to set some property value which will be used internally to abort/proceed with the install based on the minimum windows OS version supported.
Our requirement is to support OS platforms Windows 10 and later (both client and server versions). Can anyone help me understand how this value is calculated internally so I can make the code work accordingly to our requirement?
Regards
Sridhar
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
HI @skalimikonda,
What is your project type? Basic MSI, Installscript MSI or installscript?
What is your requirement? you dont want your installer to run on win7 and server 2012 R2 except this 2 all OS it should install
You can use the OS platform filter available under Project Assistant view.
If you want to exclude using a Customaction, try to check the machine OS build number and based on the OS build number you can ignore or abort your installation.
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion
check for CurrentBuild registry value and based on that registry value you can abort your installation.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Hi Varul
Thank you for the response.
We are using a Basic MSI project that uses InstallScript-based custom actions to set the custom property value "INSTALLPRODUCT" to "YES" or "NO" based on the platform being used.
We want to support Windows 10 and above for workstations and Windows Server 2012 R2 and above for servers. However, we found that the build number, major/minor versions, and VersionNT values for both Windows 10 and Windows 8.1 are all the same. As a result, we have not been able to find a way to uniquely differentiate between Windows 10 and Windows 8.1 using InstallScript custom actions to proceed or abort the installation.
Hence, asking for help!
Regards
Sree