Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BA requests get dropped when UI is shown on engine thread #6349

Closed
rseanhall opened this issue Feb 10, 2021 · 5 comments · Fixed by wixtoolset/wix#268
Closed

BA requests get dropped when UI is shown on engine thread #6349

rseanhall opened this issue Feb 10, 2021 · 5 comments · Fixed by wixtoolset/wix#268
Assignees
Labels
Milestone

Comments

@rseanhall
Copy link
Contributor

Bugs

If this issue is a bug:

  • Which version of WiX are you building with?

latest v3 and v4

  • Which version of Visual Studio are you building with (if any)?

N/A

  • Which version of the WiX Toolset Visual Studio Extension are you building with (if any)?

N/A

  • Which version of .NET are you building with?

N/A

  • If the problem occurs when installing your packages built with WiX, what is the version of Windows the package is running on?

N/A

  • Describe the problem and the steps to reproduce it.

Burn uses PostThreadMessage to queue up the BA requests for actions like Detect, Plan, and Apply. If the BA shows UI in a callback, then those messages will be thrown away. This also applies when the engine shows the UAC prompt for the elevated engine. To reproduce:

  1. Launch the bundle unelevated.
  2. Have the BA call Elevate.
  3. Have the BA call Plan inside OnElevate (OnElevateBegin in v4).
  4. The UAC prompt should come up, click Yes.
  • Describe the behavior you expected and how it differed from the actual behavior.

Expected: The engine processes the plan request after elevation completes.
Actual: The engine doesn't plan.

Raymond Chen post - Why do messages posted by PostThreadMessage disappear?

@BMurri
Copy link

BMurri commented Feb 23, 2021

I'd like to fix this

@rseanhall
Copy link
Contributor Author

For implementing our own queue, I like how Raymond Chen built a linked list in co_await awaitable signal part 4.

@BMurri
Copy link

BMurri commented Sep 8, 2022

Last time I had time to wrap this up, I couldn't build v4. I'll be able to try again this weekend, so this should be in PR soon.

@barnson
Copy link
Member

barnson commented Oct 13, 2022

@BMurri we're targeting 4.0-preview.1 for Halloween so if you're going to implement this, it would need to be in sometime next week or so.

@rseanhall
Copy link
Contributor Author

I wanted to make sure this got into v4 so I went ahead and did it.

@rseanhall rseanhall assigned rseanhall and unassigned BMurri Oct 19, 2022
wix.4.0-preview.1 automation moved this from To do to Done Oct 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

3 participants