Launch a file after installation. - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

Elwin
Posts: 23
Joined: Fri Nov 18, 2011 2:48 pm
Location: The Netherlands
Contact: Website

Launch a file after installation.

Hello,
sorry for my English.. :(

this is my question: (go to "Dialogs" from the left pane)
in the "First time install" folder you can select in the "ExitDialog" that you can start your program.
just go to the "Finish" tab. check the checkbox en select which program you want to start.

I want to start a program in the "ExitDialog" from the "Maintenace" folder but there isn't a "Finish" tab where you can select which program you want to start.
I hope that you understand me.


i have used this http://www.advancedinstaller.com/user-g ... ation.html guide but i don't understand it.

Kind regards,
Elwin
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Launch a file after installation.

Hi Elwin,

The "Finish Actions" tab is only available for "First Time Install".

Here are the exact steps you need to follow from the article to achieve the same functionality only on "Maintenance":
  • create a checkbox control on "ExitDialog"
  • in the Properties section set the "Property Name" field to CHECK
  • in the "Text" field set the text of the checkbox (for example "Launch the application")
  • in the Custom Actions Page, add "Launch file or open URL" as an UI Custom Action ( implementation instructions can be found here )
  • add a "DoAction" published event on the "Finish" button that executes the "Launch file or open URL" custom action
  • modify the "DoAction" control event's condition to use the property of the checkbox:

    Code: Select all

    DoAction   myapp.exe   AI_MAINT AND CHECK
This way, the custom action will only run if the checkbox is selected. If you want the checkbox to be selected by default, you can set any value in the "Default Value" field.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Elwin
Posts: 23
Joined: Fri Nov 18, 2011 2:48 pm
Location: The Netherlands
Contact: Website

Re: Launch a file after installation.

Hi,

thanks for the fast reaction, it works fine now! :D

Kind regards,
Elwin
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Launch a file after installation.

You're welcome Elwin, glad to help :)

Return to “Common Problems”