Archive: Bring executed process to foreground?


Bring executed process to foreground?
Hi.

My installer eventually launches the installed application (using exec) but the launched application is in the background.

How can I set the executed application to be in the foreground?

Thanks.


Try using System plug-in with SetWindowPos API call (http://msdn.microsoft.com/en-us/libr...=vs.85%29.aspx) with hwnd of the launched app.


Originally posted by T.Slappy
Try using System plug-in with SetWindowPos API call (http://msdn.microsoft.com/en-us/libr...=vs.85%29.aspx) with hwnd of the launched app.
Where would he get the HWND from?


If the application is slow to start up you should use the MUI function callback for the run checkbox and there you can call ExecShell+Sleep...