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

后端 未结 4 1768
伪装坚强ぢ
伪装坚强ぢ 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:36

    You can use the MsiNTProductType property to detect if it is a server os. In combination with the NT version check you can check if you have Windows Server 2008R2. This would look like the following:

    
       1) OR Installed]]>
    
    

提交回复
热议问题