[wix-users] Rollback all msi incase of any msi fails

Sean Hall r.sean.hall at gmail.com
Wed Aug 17 16:11:39 PDT 2022


The MSI transaction feature was one of the solutions added in v4. In this
scenario, bundles will also automatically run the bundle(s) that it
was upgrading in Install mode to try to restore the previous state.

On Tue, Aug 9, 2022 at 7:23 AM Nir Bar via wix-users <
wix-users at lists.wixtoolset.org> wrote:

> You can use my custom WiX build
> https://www.nuget.org/packages/PanelSW.Custom.WiX/
>
> <RollbackBounday Transaction="yes"/>
>
>
>
> It uses MSI transactions to install or rollback all the packages in the
> boundary, see
> https://docs.microsoft.com/en-us/windows/win32/msi/multiple-package-installations
>
>
>
> As of wix v4 this feature is built-into the official WiX release
>
>
>
> --
>
> Nir Bar
>
> WiX Expert
>
>
>
>
>
>
>
>
> ---- On Tue, 09 Aug 2022 15:10:42 +0300 raj pandit via wix-users <
> wix-users at lists.wixtoolset.org> wrote ---
>
>
>
> Hi,
>
> I am using package application which consist of 2 msi. for example A and
> B.
>
> In both msi, i have used below setting so that it can be rollbacked in
> case
> of any faulty upgrades.
>
> <MajorUpgrade *Schedule="afterInstallExecute"* DowngradeErrorMessage="A
> newer version of [ProductName] is already installed." AllowDowngrades="no"
> AllowSameVersionUpgrades="yes" />
> <MediaTemplate EmbedCab="yes" />
>
> <Upgrade Id="$(var.UpgradeCode)">
> <UpgradeVersion Minimum="1.0.0" IncludeMinimum="yes" *OnlyDetect="yes"*
> Maximum="$(var.ProductVersion)" IncludeMaximum="yes"
> Property="PREVIOUSFOUND" />
> </Upgrade>
>
> In the package chain, it sequenced as A first and B second. So if A
> upgraded successfully and B got error, its rollbacking B but A is in
> upgraded already.
> Making the package inconsistent.
>
> Please let me know if we can setup the chain in such a way, that it
> rollbacks both MSI to previous versions if B fails.
>
> Thanks in advance.
>
> Regard,
> Rajeev
>
> ____________________________________________________________________
> 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