Skip to content

ShellExecuteEx does not wait for process exit #61

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

Open
ysc3839 opened this issue Oct 24, 2020 · 2 comments
Open

ShellExecuteEx does not wait for process exit #61

ysc3839 opened this issue Oct 24, 2020 · 2 comments

Comments

@ysc3839
Copy link

ysc3839 commented Oct 24, 2020

if (ShellExecuteEx(&shExInfo))
{
returnCode = 0; // Install successfull
}
else
{
returnCode = 1; // Install failed
}

When ShellExecuteEx returned, the installer is still installing.
A solution is to set SEE_MASK_NOCLOSEPROCESS flag, and then WaitForSingleObject(shExInfo.hProcess).

@ysc3839
Copy link
Author

ysc3839 commented Oct 29, 2020

Ping @liminzhu @champnic

@champnic
Copy link
Member

champnic commented Nov 3, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants