我正在处理 Windows 安装程序项目。现在我只希望软件只能安装在Windows 7或Windows Server 2008 R2系统上,我尝试使用这个:
<Condition Message='Windows Server 2008 R2 or Windows 7 is required'>(VersionNT = 600 AND ServicePackLevel = 1) OR VersionNT = 601 </Condition>
但它仍然可以安装在 Windows Vista 上。请帮忙!
谢谢!
最佳答案
只需检查 VersionNT 601 或更新版本、Windows 7 和 Server 2008 R2 both have the same value.
<Condition Message="Win7 or 2008 R2 required"><![CDATA[Installed OR VersionNT >= 601]]></Condition>
关于wix - 如何在 Wix 安装程序中检查系统是 Windows 7 还是 Windows Server 2008 R2?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2733593/