Custom Actions - 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!

tim144
Posts: 1
Joined: Fri Feb 06, 2009 6:33 pm

Custom Actions

I want to add a custom action to my installer project to run a BATCH file upton completion of my the package, but when I use the wizard to add the action I end up with the following source path

<AI_CUSTACTS>viewer.exe

which bears no relation to the BATCH file I am asking it to run.

When I run the installer it returns an error at the end saying can't find file 'C:\Program'

Any ideas welcome.

TIA Tim

PS. I'm using Advanced Installer Professional Edition
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Custom Actions

Hello and welcome to Advanced Installer Forums,

It is highly recommended that you first consult our Tutorials, How To's, Q&A. Upon completion, you will have a better understanding on how Advanced Installer works and how to use it to efficiently deploy your products.

In order to add a bat file custom action, you can follow these steps:
- on the Custom Actions page, add a new "Launch File or Open URL" custom action under Install
- edit the Command Line field to resemble this:

Code: Select all

<path_to_your_bat><your_bat_filename>
For example the above could be "[APPDIR]your.bat". Your bat file needs to be added as a temporary file..

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

Return to “Common Problems”