Running Custom SQL queries provided - 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!

ahinton
Posts: 7
Joined: Tue May 26, 2009 7:16 pm

Running Custom SQL queries provided

Here is my challenge
Each time the user installs my Application
During installation they must select a "configuration zip file" that we provide them
This configuration file will be provided by us and in it will contain SQL queries / JPEG images

I have setup Custom Actions to extract the JPEGs and SQL queries to the appropriate folders

Now comes time to run the SQL queries.

I have a couple questions around this topic

1) I am already using Custom Actions on Install Finalize to unzip the files into the appropriate directories. If I need to use a custom action to also run the SQL queries then the real question is: How do I order it so that jpgs and .sql files are unzipped first AND THEN the Custom Action to run the SQL queries is ran.

2) Is the best approach to running these SQL queries that are completly unique per installation.

Alan.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Running Custom SQL queries provided

Hi Alan,
I am already using Custom Actions on Install Finalize to unzip the files into the appropriate directories. If I need to use a custom action to also run the SQL queries then the real question is: How do I order it so that jpgs and .sql files are unzipped first AND THEN the Custom Action to run the SQL queries is ran.
You can place the SQL custom action under the custom action which extracts the files. Also, the custom action which performs the extraction should be synchronous. This way the SQL custom action will run after the files are extracted.
Is the best approach to running these SQL queries that are completly unique per installation.
Unfortunately the SQL features in Advanced Installer cannot run external scripts at the end of the install process. Therefore, using a custom action is a good solution.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”