Wix 4 Custom BA - Upgrade does not complete uninstall of previous version #7600
-
This is likely to be something I'm doing wrong. I'm most of the way there with completing a conversion from Wix 3.11 to Wix 4.0.1, and this is the last part that has me stumped. I've trawled through the code base to try and find some code snippets around this, and I'm just not finding anything that deals with major/minor upgrades. I would appreciate any guidance I can get! This used to work without issue in Wix 3.11. When requesting an upgrade previously, my package/msi would be flagged as upgrade, then the custom BA would hand the details over to a silent/non-UI process. This would then go into a bit of code that looked like this in the DetectComplete event of the engine:
I'm obviously missing something here, as this no longer seems to work - I now have a message in my log that states 'Bootstrapper application already requested to quit, ignoring request: 'Plan'.', As a result, the uninstall part never happens (and no plan execute happens after this point like it used to), and I am left with duplicate bundles in ARP. I've attached the upgrade log - is anyone else able to assist/point me in the right direction for making upgrades work with a custom BA in Wix 4? Designer_100_20230707201936.log Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
What is your BA doing when logging this message?
|
Beta Was this translation helpful? Give feedback.
I can't speak to the managed BA part but from the engine perspective, once the BA calls Quit, it can't call any other engine method (afaict).