2

Just to start I'm fairly new to wix. I am currently using version 3.0 with the Votive Visual Studio plug in.

I know the upgrade code of an existing software package. I need to be able to detect the installation of this existing program using the particular upgrade code and halt the installation if the version of this program (the one I am trying to detect) is equal to or less than 1.3.0.0.

Any help would be greatly appreciated.

quetzalcoatl
  • 32,194
  • 8
  • 68
  • 107
bberak
  • 292
  • 3
  • 11

1 Answers1

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

tgeros
  • 2,592
  • 2
  • 18
  • 14