2

刚开始我对wix还很陌生。我目前正在使用带有 Votive Visual Studio 插件的 3.0 版。

我知道现有软件包的升级代码。我需要能够使用特定的升级代码检测这个现有程序的安装,如果这个程序的版本(我试图检测的那个)等于或小于 1.3.0.0,则停止安装。

任何帮助将不胜感激。

4

1 回答 1

5

Populate the UpgradeTable with the versions you want to detect for and assign it to a property:

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

Then use the property in the Launch Condition:

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

For more details:

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

于 2010-02-01T02:54:46.997 回答