prasanth.tech
Posts: 35
Joined: Wed Oct 28, 2015 5:53 am

Launched app window come behind of Installation GUI

Hi,

I have an Installer created using AdvancedInstaller and it execute one exe after installation is completed. I used a custom action (calling a function in native dll) to invoke GUI application (MFC exe) using CreateProcess. The Exe is launched but it goes behind Installation GUI. Though I modified MFC app using SetForeGroundWindow() during Window Installation, it still coming behind Installation GUI. I tried many display option in CreateProcess API like show Normal, show Window, Show restore etc. But still it does not seems to have any effect.

I want this to be come on top of Installation GUI. Please let me know whether AdvancedInstaller put any restriction/limit on the launched application to appear behind Installation GUI.

Thanks,
Prasanth
prasanth.tech
Posts: 35
Joined: Wed Oct 28, 2015 5:53 am

Re: Launched app window come behind of Installation GUI

I would like to add one more thing. I had used the custom action provided by AdvancedInstaller IDE to lanuch an exe file. That has the same issue.

Thanks,
Prasanth
Daniel
Posts: 8272
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Launched app window come behind of Installation GUI

Hello Prasanth,

Can you launch your EXE app using a custom action without sequence called using an "Execute custom action" published event added on [Finish] button from "ExitDialog" dialog and let us know if this helps? See section 2.2 from our "Launch file after installation" article.

Let us know if this helped, otherwise please try to isolate the behavior in a buildable sample (AIP + its referenced files) and send it us to support at advancedinstaller dot com so we can fully test and investigate this on our side.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”