[wix-users] if an upgrade fails *after* the previous product is removed will rollback reinstall it? [P]

Steven Ogilvie Steven.Ogilvie at titus.com
Tue Dec 1 05:47:09 PST 2015


Classification: Public
I have:

<ResolveSource Before="CostFinalize"><![CDATA[Not Installed And Not PATCH]]></ResolveSource>

<RemoveExistingProducts Overridable="yes" After="InstallInitialize" />

<MajorUpgrade DowngradeErrorMessage="A newer version of [SERVERPRODUCTNAME] is already installed. Setup will now exit." Schedule="afterInstallValidate" AllowDowngrades="no"/>

Thanks,

Steve

-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Steven Ogilvie
Sent: December-01-15 8:41 AM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Subject: Re: [wix-users] if an upgrade fails *after* the previous product is removed will rollback reinstall it?

Sorry to be clear...

Of the two lines below which needs to be changed so that if the upgrade fails the older product gets reinstalled on a rollback?

Or what do I need to change in order to get the rollback on upgrade to reinstall the order product?

Thanks,

steve

-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Phil Wilson
Sent: November-30-15 6:16 PM
To: 'WiX Toolset Users Mailing List' <wix-users at lists.wixtoolset.org>
Subject: Re: [wix-users] if an upgrade fails *after* the previous product is removed will rollback reinstall it

That not in the transaction between InstallInitialize->InstallFinalize
transaction, so if it fails it will rollback and fail the upgrade. If you sequence it after InstallInitialoze, inside the transaction, then a rollbackl of the upgrade will reinstall the older product. It's often tricky because it's an edge case that doesn't often get tested before the product is shipped. 

If REP is after InstallFinalize, the upgrade product is installed, then the older version is uninstalled, and if this uninstall fails then it will roll back, so you'll end up with both old and new products installed. 

Phil 

-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Steven Ogilvie
Sent: Thursday, November 26, 2015 10:18 AM
To: WiX Toolset Users Mailing List
Subject: Re: [wix-users] if an upgrade fails *after* the previous product is removed will rollback reinstall it?

I have this:

<MajorUpgrade DowngradeErrorMessage="A newer version of [SERVERPRODUCTNAME] is already installed. Setup will now exit." Schedule="afterInstallValidate"
AllowDowngrades="no"/>

<ResolveSource Before="CostFinalize"><![CDATA[Not Installed And Not PATCH]]></ResolveSource> <RemoveExistingProducts Overridable="yes"
After="InstallInitialize" />

-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of John Cooper
Sent: November-26-15 1:11 PM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Subject: Re: [wix-users] if an upgrade fails *after* the previous product is removed will rollback reinstall it?

That depends on the scheduling of RemoveExistingProducts.  It is not true in most cases.
--
John Merryweather Cooper
Senior Software Engineer | Integration Development Group | Enterprise Notification Service Jack Henry & Associates, Inc.® | Lenexa, KS  66214 |
Ext:  431050 | JoCooper at jackhenry.com


________________________________________
From: wix-users [wix-users-bounces at lists.wixtoolset.org] on behalf of Steve Ogilvie [sogilvie at msn.com]
Sent: Thursday, November 26, 2015 7:49 AM
To: WiX User List
Subject: [wix-users] if an upgrade fails *after* the previous product is removed will rollback reinstall it?

The e-mail below is from an external source.  Please do not open attachments or click links from an unknown or suspicious origin.

Hi folks,
If while a major upgrade is running and the install fails and rollsback (after the previous product was uninstalled) will the rollback attempt to reinstall the previous version?
Thanks,
Steve

 



 
This message has been marked as Public by Steven Ogilvie on December-01-15 8:47:03 AM.

The above classification labels were added to the message by TITUS Message Classification. 
For more information visit www.titus.com.


More information about the wix-users mailing list