Old 16th March 2013, 14:03   #1
Tsury
Junior Member
 
Join Date: Feb 2012
Posts: 10
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.
Tsury is offline   Reply With Quote
Old 19th March 2013, 13:00   #2
T.Slappy
Major Dude
 
T.Slappy's Avatar
 
Join Date: Jan 2006
Location: Slovakia
Posts: 546
Send a message via ICQ to 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.

Cool looking installers with custom design: www.graphical-installer.com
Create Setup Pages easily: www.install-designer.com
Build installers in Visual Studio 2005-2019: www.visual-installer.com
or RAD Studio 2009, 2010, XE-10.4 Sydney: www.rad-installer.com
T.Slappy is offline   Reply With Quote
Old 19th March 2013, 14:48   #3
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,295
Quote:
Originally Posted by T.Slappy View Post
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...

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump