Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

ShellExecuteEx does not wait for process exit

Open
#61 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
45/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
cpp

Research direction

Start in SampleApps/WebView2APISample/AppWindow.cpp at lines 74-81 and reproduce the installer behavior described in the issue. Check the ShellExecuteEx documentation linked there, then verify that the installer process has exited before the surrounding operation continues. Confirm the sample still builds and the installer no longer runs asynchronously.

Written by the indexing model from the issue text.

Description

https://github.com/MicrosoftEdge/WebView2Samples/blob/8ec7de9d3e80a942bc7025cffad98eee75e11e64/SampleApps/WebView2APISample/AppWindow.cpp#L74-L81
When ShellExecuteEx returned, the installer is still installing.
A solution is to set SEE_MASK_NOCLOSEPROCESS flag, and then WaitForSingleObject(shExInfo.hProcess).

Dominant language
C++
Stars
1k
Forks
521
Avg merge
13m
Merged PRs (30d)
1

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from MicrosoftEdge/WebView2Samples

All issues in MicrosoftEdge/WebView2Samples

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.