3

I want to be able to remove another application as part of the install of my MSI file. Currently, I have the following in WiX:

<Upgrade Id="{586A589B-D6D5-48D3-9B6D-571EF230ED6A}">
    <UpgradeVersion Minimum="$(var.ProductVersion)"
                    Property="NEWERPRODUCTFOUND"
                    OnlyDetect="yes"
                    IncludeMinimum="yes" />
    <UpgradeVersion Minimum="1.0.0"
                    Maximum="$(var.ProductVersion)"
                    Property="PREVIOUSVERSIONSINSTALLED"
                    IncludeMinimum="yes" />
</Upgrade>

<Upgrade Id="{71F6B5D5-8CB9-48C9-B359-4BA22D5ADAF3}">
    <UpgradeVersion Minimum="1.0.0.0"
                    Maximum="3.5.3"
                    Property="OLDAPPFOUND"
                    IncludeMinimum="yes"
                    IncludeMaximum="yes"/>
</Upgrade>

The first upgrade section is what upgrades my current MSI file (and this works). The second part is what I am trying to use to remove the other application (and this doesn't). Both the current MSI file and the one I am trying to remove both install in the per-machine context, so I cannot understand why this doesn't work. How can this problem be fixed?

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
liam.j.bennett
  • 424
  • 1
  • 4
  • 11
  • The upgrade rule seems correct. Can you post a verbose upgrade log so we can take a look at it? – Cosmin Jun 18 '11 at 10:49

1 Answers1

1

A verbose log file should indicate what products are being detected by the Upgrade elements. From there it should be possible to track down the bug in your authoring.

Rob Mensching
  • 33,834
  • 5
  • 90
  • 130