简体   繁体   English

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

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

For a windows application I am creating a Deployment project in VS2010 . 对于Windows应用程序,我在VS2010创建一个部署项目。 I want to add Launch Condition such as : 我想添加Launch Condition例如:

Setup should start on : 安装程序应该开始:

  • Windows XP having Service Pack 3 For 32 bit Windows XP有Service Pack 3 对于32位

    OR 要么

  • Windows XP having Service Pack 2 For 64 bit Windows XP有Service Pack 2 对于64位

Currently I tried with Condition (VersionNT = "501") AND (ServicePackLevel = "3") but this condition only checks for Windows XP and Service Pack version 3 which works on 32bit Windows XP, but when I run on 64bit Windows XP It gives message that I have given. 目前我尝试使用Condition (VersionNT = "501") AND (ServicePackLevel = "3")但这条件只检查适用于32位Windows XP的Windows XP和Service Pack版本3,但是当我在64位Windows XP上运行时它给出了它我给的消息。

So how can I check Windows version and Bit along with service pack version? 那么如何检查Windows版本和Bit以及Service Pack版本?

I achieved this by writing by this Launch Condition : 我通过这个启动条件写了这个:

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

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

VersionNT64 means 64bit of OS and Not VersionNT64 OS is 32bit. VersionNT64表示64位操作系统, Not VersionNT64操作系统是32位。 read more @ http://blogs.flexerasoftware.com/installtalk/2010/11/using-msi-launch-conditions-to-prevent-installation-on-unsupported-windows-platforms.html 阅读更多内容@ 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