namX
Posts: 1
Joined: Fri Apr 05, 2013 7:47 pm

Starting installed program with push button

Hi everyone,

I'm currently working on my first Advanced Installer project with Enterprise features. My current objective is to start an installed file (program.exe) during a custom dialog.

After the installation progress, the user is directed into the dialog. In the dialog, there's a push button. When the button is pushed, the 'program.exe' is started. At the moment it's not important wether it's modal or not. The user is allowed to go to the finish or exit dialog by pressing next.

I already tried following the "Launch file after installation" help, but my problem is that I'm trying to execute the program during the installation. Currently, when I'm executing a custom action as an Published Event for the Button-push, the program will be executed after pressing the final finish-button in the installation.

Is there something I'm missing or is my objective not configurable with Windows Installer?

Thank you very much for your help,

Christian
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Starting installed program with push button

Hi Christian and welcome to Advanced Installer forums.

Thank you for your interest in Advanced Installer.

In order to achieve what you want you can follow the steps below:
- go in the Custom Actions page and create a "Launch installed file" custom action without sequence
- uncheck the all the "Execution Options" check boxes for your custom action
- go in the Dialogs page and create a "New dialog in sequence" under the "ProgressDlg" dialog
- add a new "Push Button" control on the dialog you created
- with the button still selected create a new "Execute custom action" published event and choose the custom action you created as an argument
- build and run the project

Let us know if this helped, otherwise give us more details about your scenario.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”