Upgrading MSI with Wix bundle uninstall existing applications. #6591
Replies: 2 comments
-
WiX doesn't use issues for support. We moved this issue to the experimental GitHub discussions area. You might also consider asking your question on the wix-users mailing list or posting on Stack Overflow. |
Beta Was this translation helpful? Give feedback.
-
WiX coding, like MSI's, is declarative, not procedural. Thus, each package/bundle describes what an installed world looks like. Because your upgraded bundle only describes one package, when the previously installed, now obsolete bundle was removed the now superfluous "extra" package was, by your own design, removed. If your upgrade needs to keep both packages, it needs to include both packages. When the second package is found to already be installed, the default action will be to leave it alone, while claiming "ownership" of it in order for future newer bundles to be able to maintain it. The concept of the "component" rules applies to bundles. Your final bundle should be able to get the customer's system ready for your latest version of your solution, just as your first bundle did for that previous solution version. |
Beta Was this translation helpful? Give feedback.
-
Hi,
I have 2 MSIs(A.msi,B.msi) chained under "Bundle.wxs" and able to install both the MSIs successfully .Hence
Application-A(Installed by A.msi) and Application-B (Installed by B.msi)is running in my system.
But, when there is a code change for Application-A and tried to install only "A.msi" on top of the existing
applications(Installed earlier using A.msi and B.msi), I noticed that the application Application-A is upgraded successfully.
But, the existing running application Application-B is getting uninstalled.
I want both the applications should be present in system for upgradation or patch update scenario. Can some one please
advise on this. Thanks.
NOTE: I kept the upgrade code same but version is different between these 2 installations.
Following is the Bundle.wxs file created for Both(A.msi,B.msi) installation(FIRST TIME):
Following is the Bundle.wxs file created for Only(A.msi) installation(SECOND TIME):
Beta Was this translation helpful? Give feedback.
All reactions