I am working on a windows installer project. And now I only want the software only can be installed on Windows 7 or Windows Server 2008 R2 system, I tried to use this:
See https://www.msigeek.com/442/windows-os-version-numbers and https://www.lifewire.com/windows-version-numbers-2625171for an example
Version9X = 400
Version9X = 400 AND WindowsBuild = 1111
Version9X = 410
Version9X = 410 AND WindowsBuild = 2222
Version9X = 490
VersionNT = 400
VersionNT = 400 AND ServicePackLevel = n
VersionNT = 500
VersionNT = 500 AND ServicePackLevel = n
VersionNT = 501
VersionNT = 501 AND ServicePackLevel = n
VersionNT = 501 AND MsiNTSuitePersonal AND ServicePackLevel = n
VersionNT = 502
VersionNT = 600
VersionNT = 600 AND ServicePackLevel = 1
VersionNT = 600 AND MsiNTProductType = 3
VersionNT = 601
VersionNT = 602