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!

SingleP
Posts: 11
Joined: Wed Nov 23, 2016 2:21 pm

Run SQL script from file

Hello,
I'm trying to run SQL scripts from file by specify the version number.
For example: i have SQL script with 3 different queries, first query is fitted to version 1, second query fitted to version 2 , and the third accordingly.
If the install version is of version 2 , i want to run script from the SQL script from version 2, is it possible?

I'm using v.12.7.1

Thanks for help.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Run SQL script from file

Hi and welcome to our forums,

This can be done by conditioning the custom actions that trigger the queries.

For example you can use the OLDPRODUCTS property which is a list with the Product Codes of the older versions of your installation package. This property is set only in a package which upgrades another package.

Code: Select all

OLDPRODUCTS >< {GUID}
...where {GUID} is the Product Code of the specific version associated with the query.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
SingleP
Posts: 11
Joined: Wed Nov 23, 2016 2:21 pm

Re: Run SQL script from file

Thanks for help .

Return to “Building Installers”