Skip to content

ShellExecuteEx does not wait for process exit #61

Open
@ysc3839

Description

@ysc3839

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions