Hi Friends,
I am using ShellExecute API to run an application.Is it possible to determine when the program that was initiated by the ShellExecute API has finished executing (I mean finished installation as I am using the ShellExecute to run my setup.exe).
Thanks in advance.

Determining installation complete - ShellExecute API
Rick Byham
If you use the Process class instead, you can set the WaitForExit flag.