-
We have a WiX installer which was developed using WiX 3, now we are upgrading it to use WiX 4. Complete Error:
I have looked into some BA examples from WiX v4 github repos and observed that a window handler is passed within Detect Calls and the same window is disposed during exit. Is it relevant to the above issue which I am facing ?
Can any one please share some insights or the documentation link which explains this behavioral difference between WiX v3 and v4 during shutdown ? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
This is the documentation for upgrading your custom BA from v3 to v4: https://wixtoolset.org/docs/fourthree/faqs/#converting-bundles |
Beta Was this translation helpful? Give feedback.
-
I also see this error frequently in logs of bundles that use a custom BA that was migrated from v3 to v4. The calls to In the develop branch the mbahost.cpp is gone, so my next guess is that v5 works differently in this area and the issue will be gone. |
Beta Was this translation helpful? Give feedback.
-
We leave conversations open so they are found by search. Closed conversations tend to "disappear". |
Beta Was this translation helpful? Give feedback.
Yesterday, I was able to get around this by using the dispatcher from the Run() method rather than the ManagedBootstrapper constructor.
Old
New
This example follows the same approach.
The dispatcher from the constructor has an MTA apartment state, whereas the dispatcher from the run() has a STA apartment state. More analysi…