csjojo
Posts: 10
Joined: Tue Sep 01, 2009 6:32 am

How to Auto Start application after install.

Is this possible? If so any knowledge on how to do that would be great. TIA.
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: How to Auto Start application after install.

Hello,

You can consult our comprehensive guide on "how to launch a file after an installation". If however you want to implement this without the use of checkboxes, i.e. the application starting as soon as the user presses "Finish", you can place a DoAction published event on the "Finish" button to execute a "Launch File or open URL" custom action that launches your application. This guide should be of help in understanding the principle behind this.

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
csjojo
Posts: 10
Joined: Tue Sep 01, 2009 6:32 am

Re: How to Auto Start application after install.

A big Thank you Gabriel.
richard
Posts: 9
Joined: Thu Sep 10, 2009 9:08 pm

Re: How to Auto Start application after install.

Hello. I can't get the AutoCloseApplication for updates to work because the application is in the system tray and there are no windows to find. So, I've managed to close the application via custom actions but need to restart the application after install (patch, upgrade, etc). I am trying the method of attaching custom action (Launch File or open URL) to InstallFinalize per your referenced instructions above and it isn't launching the application. I'm putting a path to the exe in the command line ("C:\Program Files\MyProduct\MyApp.exe"); is this correct? Thank you
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: How to Auto Start application after install.

Hello,

Please note that you should never hardcode paths in your installer. Your users might select another path for APPDIR in which case the path you are providing ("C:\Program Files\MyProduct\MyApp.exe") will be invalid. You should instead use "[APPDIR]MyApp.exe".

Assuming the path ("C:\Program Files\MyProduct\MyApp.exe") is correct, I am unsure as to why you are encountering this behavior. Please send your .aip project file (or a stripped down version that accurately reproduces the issue if your original aip contains sensitive information) to support at advancedinstaller dot com.

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”