Running SQL scripts on patch for minor update - Advanced Installer Community
shahramB
Posts: 2
Joined: Tue Apr 12, 2016 8:52 am

Running SQL scripts on patch for minor update

Hi,

I have setup1 that has a SQL script, named script1 (it creates db1),
and I have setup2 that has another script too, named script2 (it creates db2),
means setup2 has two scripts.
I add all of these scripts in Server\SQL Databases page of Advanced Installer (v12.8).

But in patch project, which update version 1.0.1 to 1.0.2, it cannot detect this difference between two setups,
that means by installing patch, it does not create db2.

What can I do to fix this problem?
If necessary I can upload my .aips.

Thank you!
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Running SQL scripts on patch for minor update

Hello and welcome to Advanced Installer forums,

To create a patch that runs a custom action, please follow the steps from the How to create a patch that runs a custom action? article.
Let us know if that helped.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
shahramB
Posts: 2
Joined: Tue Apr 12, 2016 8:52 am

Re: Running SQL scripts on patch for minor update

Thank you for your answer,
I followed the link, but I cannot find which custom action is appropriate for the situation (I want my patch runs the sql commands in sql script2).
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Running SQL scripts on patch for minor update

Hello,

I think my colleague Dan has misunderstood your deployment scenario. If the two setup packages you created fulfill all the patch creation rules, than the script2 should be included in your patch package.

To further investigate your installation scenario please do send us the AIPs (project files) of your setup1, of your setup2 and of your patch project to support at advancedinstaller dot com so we can investigate them.

Also, please send us a verbose log of the patch installation so we can investigate it too.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”