[wix-users] Can this be recovered?

Rick Murphy k1mu.nospam at gmail.com
Sun Apr 21 18:23:41 PDT 2019


Closing the loop here for the record.
Using a collection of Upgrade elements fixed this:

    <Upgrade Id="$(var.UpgradeCode)">
<UpgradeVersion OnlyDetect='yes' Property='NEWERFOUND'
        Minimum="$(var.tqslVersion)" IncludeMinimum='no' />
<UpgradeVersion Minimum="1.0.0.0" Maximum="$(var.tqslVersion)"
Language="1033,1034" Property="OLDERINSTALLED"
IncludeMinimum="yes" IncludeMaximum="yes" />
    </Upgrade>
    <Upgrade Id="$(var.BadUpgradeCode)">
<UpgradeVersion Minimum="1.0.0.0" Maximum="$(var.tqslVersion)"
Language="1033,1034" Property="BADOLDERINSTALLED"
IncludeMinimum="yes" IncludeMaximum="yes" />
    </Upgrade>

I *thought* I had tried this and it didn't remove the old version, but that
was caused by me missing multiple edits to the "bad" upgrade code. It was
working as documented but not doing what I wanted because of bad input.

Rob, thanks for the push to dig a little deeper into why it wasn't working
as expected.
    -Rick

On Wed, Apr 17, 2019 at 3:04 PM Rob Mensching <rob at firegiant.com> wrote:

> Your next upgrade can use the Upgrade element to list both (all) previous
> UpgradeCodes. MajorUpgrade element is syntactic sugar over the more
> flexible/powerful/verbose Upgrade element.
>
> _____________________________________________________________
>  Short replies here. Complete answers over there:
> http://www.firegiant.com/
>
> -----Original Message-----
> From: wix-users <wix-users-bounces at lists.wixtoolset.org> On Behalf Of
> Rick Murphy via wix-users
> Sent: Wednesday, April 17, 2019 11:51 AM
> To: wix-users at lists.wixtoolset.org
> Cc: Rick Murphy <k1mu.nospam at gmail.com>
> Subject: [wix-users] Can this be recovered?
>
> I build and distribute a multi-platform app, and use WiX to build the
> installer for Windows. This has worked great for years and several releases.
> I use an UpgradeCode and the MajorUpgrade element to allow new releases to
> automatically uninstall older versions of the package, and again this has
> worked as expected.
> Then, for a new release, due to an overzealous editing error, I changed
> two things in my main wxs file:
> 1. The UpgradeCode was changed from ...7E33 to ...7E34 2. The Language in
> the Product element was changed rom "1033" to "1034".
>
> The error was detected when users related errors due to the fact that they
> had two versions of the package installed at the same time. Oops.
>
> I've been searching for a way to fix these - specifically to uninstall
> both versions of the package with the next update. At the moment, I'm
> forced to tell the affected users to manually uninstall the "wrong" version.
>
> What hope do I have to have this corrected, particularly given the
> language code mistake?
>
> Any help you can provide with digging out of this hole would be
> appreciated.
>     -Rick
>
> --
> Rick Murphy, CISSP-ISSAP, K1MU/4, Annandale VA USA
>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant
> http://www.firegiant.com/
>


-- 
Rick Murphy, CISSP-ISSAP, K1MU/4, Annandale VA USA



More information about the wix-users mailing list