[wix-users] Burn automatic rollback on installer failure

Tyler Gustafson tgustafson at solacom.com
Wed Jan 25 07:51:22 PST 2017


Hmm.

I have never been able to just run the repair on the bootstrapper it's self. Doing that just seems to ignore the products that are now a higher version number due to the failed update. I did have a mailing list question about that a while back as well but when I tried to attach logs and source code the email bounced back saying it was too large and an admin would have to manually approve it.

For those following along, I've figured out my issue and my bundle now preforms as Blair suggested it should with product #2 rolling back automatically and leaving me with just product #1 to manually run repair on (although I do have to repair product#1 and not the bootstrapper it's self). It turns out my purposely failing custom action was scheduled after InstallFinalize which I believe is beyond the rollback boundary. When I schedule it after InstallFiles it works as I was hoping.

I also found that if I include the minor upgrades in the bootstrapper as msp instead of msi, the bootstrapper knows enough to properly roll back product #1 after product #2 fails so I've got my required robustness as long as I use patches instead of full installers.

Thanks for the help!
Tyler



-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Blair Murri
Sent: January-25-17 2:23 AM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Subject: Re: [wix-users] Burn automatic rollback on installer failure

I would have expected that you would have needed to repair only MSI #1, not both. The MSI with the error should have restored the system, it's an error in that MSI if that's not the case.



Running a single repair to the installed bundle should have fixed everything without having to go to each MSI separately.



Blair Murri



Sent from my Windows 10 phone



From: Tyler Gustafson<mailto:tgustafson at solacom.com>
Sent: Tuesday, January 24, 2017 8:01 AM
To: WiX Toolset Users Mailing List<mailto:wix-users at lists.wixtoolset.org>
Subject: Re: [wix-users] Burn automatic rollback on installer failure



And I've found where I read about this before:
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Bootstrapper-multiple-MSI-s-don-t-rollback-to-a-working-installed-state-td7586867.html

Sorry for the spam. If anyone knows about any new developments to this please let me know.

Tyler

-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Tyler Gustafson
Sent: January-24-17 10:49 AM
To: wix-users at lists.wixtoolset.org
Subject: [wix-users] Burn automatic rollback on installer failure

I feel like I've read about this somewhere before but I can't find it now. I just wanted to confirm this is expected behaviour.

I've got a burn bundle using out of the box burn functionality.
The bundle installs 3 msi files in order 1, 2, 3.

I do minor upgrade to each of the msi and re-bundle them but this time I've put a custom action in msi #2 which causes the installer to fail.

When I run the this new bundle it does a minor upgrade to 1, starts a minor upgrade to 2 and fails triggering a rollback to both 1 and 2. It never attempts to upgrade 3.

So far all works as I would hope but now I find that I have to go into Add/Remove programs and manually repair products 1 and 2 to get them back to the version they were told to roll back to.

I feel like I've read that the burn engine doesn't do the automatic repair by design but I can't remember where I saw that. If this is the case and I want the engine to automatically repair would I have to write my own custom bootstrapper code or am I missing something to automatically get this functionality?

One last piece of the puzzle that might be important is I am using <MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." Schedule="afterInstallExecute" /> In my msi.

Thanks,
Tyler



____________________________________________________________________
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