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

Nir Bar nir.bar at panel-sw.com
Tue Aug 9 05:23:47 PDT 2022


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/


More information about the wix-users mailing list