Wix 5.0.2: Upgrade fails to remove previous version of application - failed to elevate. #8892
Replies: 2 comments 3 replies
-
If you believe there is a bug in the WiX handling, then you would really need to create an E2E test (in line with existing E2E tests within the WiX repository) that shows this bug occurring. You should probably start by producing the minimum reproducible example of your issue. If you base the bundle and package on those already existing within the E2E tests (https://github.com/wixtoolset/wix/tree/main/src/test/burn/TestData) that's probably the easiest to then convert it into an E2E test for inclusion. |
Beta Was this translation helpful? Give feedback.
-
@kerrywicks @MatthiasRInst dug into the code and commented in the link in your original post. I just added a comment to that discussion. Also seems like you are missing a log file. There should be an elevated log file as well (to Designer_100_Uninstall_Previous_Version.log). |
Beta Was this translation helpful? Give feedback.
-
This seems to be related to the issue under discussion here: https://github.com/orgs/wixtoolset/discussions/8818#discussioncomment-11628654. I'm opening up a new discussion, as it was beginning to feel like my issue was slightly different from the other issue.
Major upgrades are being detected properly, and the correct paths are being followed. However, once the installer gets into the stage of needing to uninstall the previous version, the silent installer fails because the process cannot be elevated. I then need to manually run the old installer to fully remove the old version from ARP, as I end up in a state with 2 entries in there.
I've trawled over the example code at https://github.com/wixtoolset/wix/tree/HEAD/src/test/burn/WixToolset.WixBA, and I'm completely stumped. I'm not sure if I need to open up an issue about this, or if it's just me doing something wrong.
I've attempted various things to make sure I'm getting the correct window handle, though this is making no difference. This seems to be an issue with the out of proc changes when the installer is called as part of an upgrade or via ARP.
Has anyone else encountered this, or have any ideas on what I can try next? I've attached a couple of log files - 1 showing the upgrade process, and another showing the uninstall called via the upgrade process failing.
Designer_100_Upgrade.log
Designer_100_Uninstall_Previous_Version.log
Beta Was this translation helpful? Give feedback.
All reactions