[wix-users] Is there a way to allow major upgrade if version is the same but product code is different?

Joseph Musser me at jnm2.com
Thu Nov 3 14:17:23 PDT 2016


I'm using the MajorUpgrade element, but since I was blocked on
accomplishing what I want I also tried the upgrade table. Neither work yet.

Like I said in my opening email, AllowSameVersionUpgrades does not work
when product code changes and version and revision do not change. From my
testing it leaves duplicate entries in ARP.


On Thu, Nov 3, 2016 at 5:12 PM, John Cooper <JoCooper at jackhenry.com> wrote:

> Read the documentation for the MajorUpgrade element and the
> AllowSameVersionUpgrades attribute.
>
> There is very little benefit to hand-authoring the upgrade tables like you
> are doing.
>
> --
> John Merryweather Cooper
> Senior Software Engineer -- Integration Development Group -- Enterprise
> Notification Service
> Jack Henry & Associates, Inc.® | Lenexa, KS  66214 | Office:
> 913-341-3434x431050
> JoCooper at jackhenry.com
>
>
>
>
> -----Original Message-----
> From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf
> Of Joseph Musser
> Sent: Thursday, November 3, 2016 3:58 PM
> To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
> Subject: Re: [wix-users] Is there a way to allow major upgrade if version
> is the same but product code is different?
>
> The e-mail below is from an external source.  Please do not open
> attachments or click links from an unknown or suspicious origin.
>
> I also tried this which had the same result:
>
> <Upgrade Id="$(var.UpgradeCode)">
>   <UpgradeVersion Maximum="$(var.ProductVersion)" IncludeMaximum="yes"
> Property="OLDERVERSIONBEINGUPGRADED" />
>   <UpgradeVersion Minimum="$(var.ProductVersion)" IncludeMinimum="no"
> OnlyDetect="yes" Property="NEWERVERSIONDETECTED" /> </Upgrade>
> <CustomActionRef Id="WixExitEarlyWithSuccess"/>
>
> <InstallExecuteSequence>
>   <RemoveExistingProducts After="InstallValidate" />
> </InstallExecuteSequence>
>
> On Thu, Nov 3, 2016 at 4:48 PM, Joseph Musser <me at jnm2.com> wrote:
>
> > I'm randomizing the product ID with each build ("*") but I want to
> > leave the revision at 0. We may do multiple builds internally but when
> > we publish to the client the revision number should be 0.
> >
> > AllowSameVersionUpgrades="yes" seems like it was designed for this,
> > but it does not work and two instances end up in ARP. I assume this is
> > because the version is the same.
> >
> > Is there anything I can do to augment this so that a major upgrade
> > happens without changing the version?
> >
> >
> >
>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant
> http://www.firegiant.com/
>
> NOTICE: This electronic mail message and any files transmitted with it are
> intended
> exclusively for the individual or entity to which it is addressed. The
> message,
> together with any attachment, may contain confidential and/or privileged
> information.
> Any unauthorized review, use, printing, saving, copying, disclosure or
> distribution
> is strictly prohibited. If you have received this message in error, please
> immediately advise the sender by reply email and delete all copies.
>
>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant
> http://www.firegiant.com/
>



More information about the wix-users mailing list