簡體   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