WebView2Samples
WebView2Samples copied to clipboard
ShellExecuteEx does not wait for process exit
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).
Ping @liminzhu @champnic
Thanks for catching this! I'll open a bug on our backlog.