gpt4 book ai didi

wix - 如何在 Wix 安装程序中检查系统是 Windows 7 还是 Windows Server 2008 R2?

转载 作者:行者123 更新时间:2023-12-04 01:18:58 24 4
gpt4 key购买 nike

我正在处理 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/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com