繁体   English   中英

启动条件:具有OS位的Windows OS Service Pack版本

[英]Launch Condition : Windows OS service pack version with OS bit

对于Windows应用程序,我在VS2010创建一个部署项目。 我想添加Launch Condition例如:

安装程序应该开始:

  • Windows XP有Service Pack 3 对于32位

    要么

  • Windows XP有Service Pack 2 对于64位

目前我尝试使用Condition (VersionNT = "501") AND (ServicePackLevel = "3")但这条件只检查适用于32位Windows XP的Windows XP和Service Pack版本3,但是当我在64位Windows XP上运行时它给出了它我给的消息。

那么如何检查Windows版本和Bit以及Service Pack版本?

我通过这个启动条件写了这个:

((VersionNT = "501") AND (Not VersionNT64) AND (ServicePackLevel = "3")) OR ((VersionNT = "501") AND (VersionNT64) AND (ServicePackLevel = "2"))

VersionNTServicePackLevel将检查Windows操作系统名称和Service Pack版本。 阅读更多内容@ https://msdn.microsoft.com/en-us/library/aa370556%28v=vs.85%29.aspx

VersionNT64表示64位操作系统, Not VersionNT64操作系统是32位。 阅读更多内容@ http://blogs.flexerasoftware.com/installtalk/2010/11/using-msi-launch-conditions-to-prevent-installation-on-unsupported-windows-platforms.html

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM