Running an SQL Script after a Custom Action during install - 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!

psaunders
Posts: 30
Joined: Fri Oct 29, 2010 3:08 pm

Running an SQL Script after a Custom Action during install

Hi,

I have setup a MySQL script to run during install but it fails to connect to the database as the service is not running. The MySQL service is executed as a custom action.

Therefore how do I execute the script after the custom actions or do I have to setup the script as a custom action?

If I have to set it up as a custom action how do I go about this?
Last edited by psaunders on Tue Nov 02, 2010 12:34 pm, edited 1 time in total.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Running an SQL Script after a Custom Action during install

Hi,

SQL Scripts are executed after "InstallODBC" standard action. Therefore, you can try moving your MySQL service custom action before "InstallODBC". For example, you can schedule it after "RegisterFonts". To view a standard action you can use the "Show Standard Action" toolbar button or context menu in "Custom Actions" page.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
psaunders
Posts: 30
Joined: Fri Oct 29, 2010 3:08 pm

Re: Running an SQL Script after a Custom Action during install

Hi Cosmin,

This has resolved my issue. Thanks very much.

Return to “Common Problems”