SQL scripts not run during patch installation - Advanced Installer Community
igo
Posts: 1
Joined: Tue Jul 29, 2014 4:48 am

SQL scripts not run during patch installation

Hi.

I am trying to create a patch (let's call it version 3) for an installer done a long time ago. In the Resources section inside Files and Folders, we have an SQL folder where sql scripts were run during installation of previous patches (e.g. version 2). I've added a new sql script inside this directory for my new patch (version 3) however, this is never executed during installation. I can see that the file is in the artifacts, and is even copied over after patch installation.

Can you give me some advise on how I can track down the root cause? Where exactly should I look at?
Thanks!

Igo
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: SQL scripts not run during patch installation

Hello Igo and welcome to Advanced Installer forums,

I'm not sure why you encountered this behavior.
In order to include a SQL Script in a patch, you need to make sure that the script is included only in the Upgraded package (and not in the Target package). This way, when the patch is built the SQL script is included in it.

If you want to execute a custom action during a patch, you can take a look on the How do I create a patch that runs a custom action? article with related information for hints and guidance.

Also, in order to have a better view about this, can you please give us the AIP's( old project file, the upgraded project file and the patch project file) and a verbose log of the patch installation to support at advancedinstaller dot com so we can investigate them?

Let us know if that helped.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”