[wix-users] Upgrading

Farrukh Waheed farrukh1 at gmail.com
Mon Apr 25 23:50:39 PDT 2016


In my organization, we do Major Upgrades. For this, in our Wix, we are
adding following Upgrade markup:

    <Upgrade Id="$(var.UpgradeCode)">
      <UpgradeVersion
        Property        =   "PREVIOUSFOUND"
        Minimum         =   "1.0.0.0"
        IncludeMinimum  =   "yes"
        Maximum         =   "$(var.Version)"
        IncludeMaximum  =   "yes"
        />
    </Upgrade>

This would do major upgrade to any previous versions installed. I guess,
now in Wix, there is MajorUpgrade element available which do the same job.

See details here:
http://wixtoolset.org/documentation/manual/v3/howtos/updates/major_upgrade.html

and one good discussion is here:
http://stackoverflow.com/questions/114165/how-to-implement-wix-installer-upgrade/724098#724098

Generally speaking:
1- Major Upgrade would do and Uninstall first and then Install the latest
one.
2- In Small Upgrades/Updates/Patches, Windows Installer compares the
versions of installed files (If Binary) tracked by Component IDs. In case
these are Aschii files (which can't hold version info), their Date and Time
would be compared (and may be size as well), The older ones would be
replaced by the latest ones.


On 22 April 2016 at 17:50, Winter,Stijn S. de <
stijn.dewinter at student.fontys.nl> wrote:

> Hey,
>
> Thanks for the quick response! :D
> is that the only thing i have to do?
> Also can i specify things that only run when upgrading and not on a clean
> install and vice versa
>
> Kind regards,
> Stijn de Winter
> ________________________________________
> Van: wix-users <wix-users-bounces at lists.wixtoolset.org> namens Sanket
> Panchamia <psanket at gmail.com>
> Verzonden: vrijdag 22 april 2016 14:26
> Aan: WiX Toolset Users Mailing List
> Onderwerp: Re: [wix-users] Upgrading
>
> Hi
>
> There is an upgrade code in the package that has to be the same throughout
> your installation package for different versions of the product.
> On 22-Apr-2016 4:52 pm, "Winter,Stijn S. de" <
> stijn.dewinter at student.fontys.nl> wrote:
>
> > Hello all,
> >
> >
> > Bit of a stupid question maybe,
> >
> > Is upgrading automatically supported and how does wix know what files to
> > upgrade??
> >
> > I'm using a bundle for this installation.
> >
> >
> > Kind regards,
> >
> > Stijn de Winter
> >
> >
> > ==========================================================
> > Op deze e-mail zijn de volgende voorwaarden van toepassing:
> > http://www.fontys.nl/disclaimer
> > The above disclaimer applies to this e-mail message.
> >
> > ____________________________________________________________________
> > WiX Toolset Users Mailing List provided by FireGiant
> > http://www.firegiant.com/
> >
>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant
> http://www.firegiant.com/
>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant
> http://www.firegiant.com/
>



More information about the wix-users mailing list