[Wix5] Installer handles upgrade as side by side install instead? #8817
Replies: 2 comments 3 replies
-
So here's what I'm thinking might be happening, based on testing and extensive log reviews, plus looking around the internet for similar situations:
I guess the way folks usually do something like this is CustomAction, running a utility executable in a privileged context without registering hooks that affect uninstall and maintenance operations? Conceivably I could also use the "unpatchable" blank-GUID option for the component, but that feels worse again. Anyone feel like weighing in on how they accomplish this kind of "sort-of-permanent" component? |
Beta Was this translation helpful? Give feedback.
-
Further information about this problem - I've created a couple of test versions of my package (v2.1.66 and v2.1.67), differing only in version number, and in the log for the bundle during the upgrade Apply, I see the following line:
Is this because I've got prerequisites in the bundle? I'm not sure I understand why this registration happens or where it's coming from otherwise; I don't have any elements in my bundle or package that explicitly set dependencies, and my prerequisites are all being installed as permanent, so I would have expected they wouldn't need any additional handling. This problem is kind of the last straw for me, to be honest. Not being able to cleanly upgrade between versions for reasons that are opaque to me means I need to move on to another framework. It's too bad, really. Wix is a very interesting project, but the amount of knowledge required to use it for even a simple install seems to be overwhelming. |
Beta Was this translation helpful? Give feedback.
-
My installer project uses a Burn bundle to wrap a custom MSI along with a few ExePackage dependencies, and it uses the
MajorUpgrade
element to specify the behavior for package upgrades (nothing fancy, just disallow downgrades). I haven't specifiedProductCode
(so it should autogenerate per build), and I have staticUpgradeCode
s for both the bundle and the MSI package.My expectation with this configuration is that my installer will detect the existing install and try to upgrade my package. But what actually happens when I try to install a later version - version 2.1.65 - over an earlier version - 2.1.43 - is that I see both versions in the Programs list and no indication in my log file that it even enters upgrade mode.
Is there something I'm likely missing here? Is there a way to test and debug this besides reviewing install logs?
Beta Was this translation helpful? Give feedback.
All reactions