簡體   English   中英

使用Wix檢測已安裝的軟件

[英]Detect Installed Software Using Wix

剛開始,我對wix還是很陌生。 我目前正在使用帶有Votive Visual Studio插件的3.0版。

我知道現有軟件包的升級代碼。 我需要能夠使用特定的升級代碼來檢測此現有程序的安裝,並在該程序的版本(我嘗試檢測的版本)等於或小於1.3.0.0時停止安裝。

任何幫助將不勝感激。

用要檢測的版本填充UpgradeTable並將其分配給屬性:

<Upgrade Id="[the upgrade code]">
   <UpgradeVersion Minimum="0.0.0.0" Maximum="1.3.0.0" OnlyDetect="yes" Property="FOUND">
</Upgrade>

然后在啟動條件中使用該屬性:

<Condition Message="Version blah found">FOUND = ""</Condition>

更多細節:

http://neilsleightholm.blogspot.com/2009/01/launchconditions-findrelatedproducts.html

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM