2010-02-01 28 views
2

剛開始我對wix很新。我目前使用3.0版Votive Visual Studio插件。使用Wix檢測已安裝的軟件

我知道現有軟件包的升級代碼。我需要能夠使用特定的升級代碼來檢測這個現有程序的安裝,並且如果該程序(我試圖檢測的那個)的版本等於或小於1.3.0.0,則停止安裝。

任何幫助將不勝感激。

回答

5

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

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

有關詳細信息:

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

然後在啓動條件使用屬性

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

+0

你可以給一個鏈接,在更多這樣的關於wix的事情可以找出來? – Ravisha 2010-02-01 02:58:06

+0

@Ravisha查看「Windows Installer權威指南」http://www.amazon.com/Definitive-Guide-Windows-Installer-Experts/dp/1590592972 – saschabeaumont 2010-02-01 05:53:45

相關問題