+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: Making sure Run command runs .exe on top of installer screen

  1. #1

    Default Making sure Run command runs .exe on top of installer screen

    Hello again,
    Is there a way to make sure the RUN command launches an app on top of the installer window?

    I am running a third party application from setupbuilder script and for some reason when the third party installer launches (using the Run command in SetupBuilder) - it is launching behind the installer window. - Even clicking on the window for the .exe I'm running, will not allow it to show on top of the installer.

    I am issuing the run command from within the main 'Loop Wizard' and using these settings:
    Target Folder = %TMPDIR%
    Wait for program is checked
    Use ShellExecuteEx and Run Elevated are checked.


    Thanks, Kathy

  2. #2

    Default Re: Making sure Run command runs .exe on top of installer screen

    NOTE: When I use the same command lower down in the script (under the [Execute Programs] or [Finalize Setup] sections I do not have this problem.

    However, I need to be able to run this .exe from a dialog within the 'Loop wizard'.

    - Kathy

  3. #3
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: Making sure Run command runs .exe on top of installer screen

    Kathy,

    This is out of the control of the SetupBuilder installer. The installer can't bring the other application to the "foreground" -- the 3rd-party application has to do this itself. Not easy to handle because Microsoft limited the "SetToForeground" capability, but it is possible (with some tricks).

    BTW, if you can't bring it to the forground means that the other installer does not handle the event queue correctly.

    Friedrich

  4. #4
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: Making sure Run command runs .exe on top of installer screen

    Kathy,

    The "Loop Wizard" runs on its own thread. The installer itself can't "push" the other application to the foreground.

    Friedrich

  5. #5

    Default Re: Making sure Run command runs .exe on top of installer screen

    I'm sure it's not something the 3rd party .exe is doing, because no .exe's that are called from within the Loop Wizard are able to show on top of the installer dialog.

    I will see if I can create some kind of workaround. But, it really seems like you should be able to do this.

    Thanks, Kathy

  6. #6
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: Making sure Run command runs .exe on top of installer screen

    Kathy,

    I have uploaded a simple demo project. It runs (and waits for) a program from within the loop.

    http://www.lindersoft.com/publicdownloads/rundemo.zip

    Please compile and run "rundemo.sb7". In the test installer, click the RUN button. This will execute the 3rd-party application (and waits for its termination).

    It works as expected here (shown on top of the installer dialog). Does this demo also work for you? Can you manipulate the rundemo.sb7 to reproduce your problem?

    Thanks,
    Friedrich
    Attached Images Attached Images  

  7. #7

    Default Re: Making sure Run command runs .exe on top of installer screen

    Works great! I tried it with an .msi and another .exe and it runs fine (On top of Installer)!

    Thanks, Kathy

    Was this a fix in the new build?

  8. #8
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: Making sure Run command runs .exe on top of installer screen

    Kathy,

    No, nothing changed in this area. Perhaps it is the missing "trial" nag screen at installer startup that makes a difference.

    Friedrich

  9. #9

    Default Re: Making sure Run command runs .exe on top of installer screen

    Hi,

    Yea, I was able to use your test but, in my app the third party installer still shows up behind the setupbuilder installer.

    Can I send you a copy of my script to look at?

    - Kathy

  10. #10

    Default Re: Making sure Run command runs .exe on top of installer screen

    Hi Friedrich,

    I created a simple version that shows the issue I'm having.
    I uploaded to attachements

    RunOtherInstallIssue.txt - which is the script export to text

    and

    RunOtherInstallIssue_CompilerOutput_.txt - which is the compiler output

    Let me know if you are able to see the issue with this script.

    Thanks, Kathy
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts
  •