[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:40:32 PDT 2016
With AllowSameVersionUpgrades the MSI is definitely working but Burn is not.
When I run two separate builds of the bootstrapper, with separately built
MSIs, two entries show up in Programs and Features and a reboot is queued.
Not sure how to proceed.
On Thu, Nov 3, 2016 at 5:30 PM, Joseph Musser <me at jnm2.com> wrote:
> It must be related to Burn. I tried the msi directly and it worked as
> expected.
>
> On Thu, Nov 3, 2016 at 5:19 PM, Carlos Sosa <carlos.sosa.us at outlook.com>
> wrote:
>
>>
>> I don’t fully understand what is the problem you are describing, but with
>> the settings bellow, the Version will be set to whatever is set in the
>> configuration.
>> I hope it helps.
>>
>>
>> ************************************************************
>> ****************
>> *******************
>> <?define UpgradeCode = "6XXXXXXb-3aa3-XX0a-b8ea-fdXXXXXX50916" ?>
>> <!--<?define
>> ProductVersion="$(fileVersion.ProductVersion($(var.ProductFe
>> ature.TargetPath
>> )))" ?>-->
>>
>> <Product Id="*"
>> Name="$(var.ProductName)"
>> Language="1033"
>> Version="1.0.0.0"
>> Manufacturer="$(var.ProductManufacturer)"
>> UpgradeCode="$(var.UpgradeCode)">
>> <Package InstallerVersion="200" Compressed="yes"
>> InstallScope="perMachine" InstallPrivileges="elevated" />
>> <MajorUpgrade AllowDowngrades="no"
>> AllowSameVersionUpgrades="YES"
>> DowngradeErrorMessage="A newer version of [ProductName]
>> is
>> already installed." />
>>
>>
>>
>> -----Original Message-----
>> From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On
>> Behalf Of
>> John Cooper
>> Sent: Thursday, November 3, 2016 3:12 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?
>>
>> 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/
>>
>> ____________________________________________________________________
>> WiX Toolset Users Mailing List provided by FireGiant
>> http://www.firegiant.com/
>>
>
>
More information about the wix-users
mailing list