[wix-users] Upgrade Paths in Wix

Edwin Castro egcastr at gmail.com
Wed Nov 22 21:05:13 PST 2017


One way to understand the <MajorUpgrade> tag is that it produces <Upgrade>
with specific values that represent a "major upgrade". You can author your
own <Upgrade> tags, in addition to <MajorUpgrade>, to add additional rows
into the Upgrade table. You really need to understand how the Upgrade
table, <Upgrade> tag, and <MajorUpgrade> tag work.

http://msdn.microsoft.com/library/aa372379.aspx
http://wixtoolset.org/documentation/manual/v3/xsd/wix/upgrade.html
http://wixtoolset.org/documentation/manual/v3/xsd/wix/upgradeversion.html
http://wixtoolset.org/documentation/manual/v3/xsd/wix/majorupgrade.html

The key is that you want to specify the minimum and maximum versions for
the allowed major upgrade, and *detect* the versions that you want to
disallow. The Upgrade table is processed when the FindRelatedProducts
standard action executes and its results are stored in properties specified
in the Upgrade table rows. Armed with these properties you can author
LaunchConditions to disallow upgrades when certain versions are installed.
You could instead use the properties to display specific text if you have
authored a UI.

--
Edwin G. Castro


On Wed, Nov 22, 2017 at 8:45 PM, Ven H <venh.123 at gmail.com> wrote:

> Thanks a lot Edwin. Do you mean I need to query the Upgrade Table or
> something? If so, how to do this? Should it be through some custom action?
> Please advise.
>
> Regards,
> Venkatesh
>
> On Thu, Nov 23, 2017 at 9:08 AM, Edwin Castro <egcastr at gmail.com> wrote:
>
>> Perhaps we're talking about different customers here... I'm guessing...
>>
>> The poor user that uses your customer's software will likely dislike
>> being forced to run multiple upgrades to get to latest. It is simply a bad
>> practice.
>>
>> Your customer probably shouldn't have given you that requirement if they
>> value usability.
>>
>> As the setup developer you should know whether that intermediate upgrade
>> is really required or not. At least from a technical perspective.
>>
>> In any case, the Upgrade table is what you need if you can't address the
>> perceived need for this requirement.
>>
>> --
>> Edwin G. Castro
>>
>>
>> On Wed, Nov 22, 2017 at 7:24 PM, Ven H <venh.123 at gmail.com> wrote:
>>
>>> I am not forcing this on them. It is their requirement and they are
>>> asking me to check the feasibility and the ways to achieve this.
>>>
>>> Regards,
>>> Venkatesh
>>>
>>> On Thu, Nov 23, 2017 at 12:34 AM, Edwin Castro via wix-users <
>>> wix-users at lists.wixtoolset.org> wrote:
>>>
>>>> I agree you shouldn't force this kind of behavior on your customers...
>>>>
>>>> If you still think you must, then you'll want to use the Upgrade table
>>>> in
>>>> version 2.0 to detect versions 1.1 or 1.2 and disallow upgrade in those
>>>> cases. The MajorUpgrade tag will not do this kind of thing for you so
>>>> you'll need to author Upgrade yourself.
>>>>
>>>> --
>>>> Edwin G. Castro
>>>>
>>>>
>>>> On Wed, Nov 22, 2017 at 10:42 AM, Hoover, Jacob via wix-users <
>>>> wix-users at lists.wixtoolset.org> wrote:
>>>>
>>>> > It's a Major Upgrade, why on earth would you wish to force your
>>>> customers
>>>> > to do this?  Sounds like you might be trying to update some externally
>>>> > managed file, which should be handled by the application and/or custom
>>>> > actions.
>>>> >
>>>> > -----Original Message-----
>>>> > From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On
>>>> Behalf
>>>> > Of Ven H via wix-users
>>>> > Sent: Wednesday, November 22, 2017 10:34 AM
>>>> > To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
>>>> > Cc: Ven H <venh.123 at gmail.com>
>>>> > Subject: [wix-users] Upgrade Paths in Wix
>>>> >
>>>> > Is it possible to specify Upgrade Paths in Major Upgrade? For example,
>>>> > let's say if a client is at version 1.3 or 1.4, they can upgrade to
>>>> 2.0,
>>>> > but if they are in 1.1 or 1.2, they must first upgrade to 1.3 or 1.4
>>>> before
>>>> > upgrading to 2.0? How can we achieve this?
>>>> >
>>>> > Regards,
>>>> > Venkatesh
>>>> >
>>>> > ____________________________________________________________________
>>>> > 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