How to check the system is Windows 7 or Windows Server 2008 R2 in Wix Installer?

后端 未结 4 1772
伪装坚强ぢ
伪装坚强ぢ 2020-12-15 10:12

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:

4条回答
  •  一向
    一向 (楼主)
    2020-12-15 10:39

    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
    

提交回复
热议问题