WebView2Samples icon indicating copy to clipboard operation
WebView2Samples copied to clipboard

ShellExecuteEx does not wait for process exit

Open ysc3839 opened this issue 5 years ago • 2 comments

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).

ysc3839 avatar Oct 24 '20 14:10 ysc3839

Ping @liminzhu @champnic

ysc3839 avatar Oct 29 '20 03:10 ysc3839

Thanks for catching this! I'll open a bug on our backlog.

champnic avatar Nov 03 '20 00:11 champnic