execute custom action based on executing sql steps - Advanced Installer Community
yanis_1984
Posts: 2
Joined: Mon Nov 02, 2015 10:54 am

execute custom action based on executing sql steps

i need to execute a custom action to execute a sql query while executing sql scripts, how can i do this?
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: execute custom action based on executing sql steps

Hello and welcome to Advanced Installer forums,

I'm not sure I fully understand your scenario. Can you please give us more details, maybe exemplify?

To execute a sql query, you can add it in the SQL Databases view.
You can also take a look on the Set MSI properties from SQL queries video which may be useful to you.

If you need any help, please let me know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
yanis_1984
Posts: 2
Joined: Mon Nov 02, 2015 10:54 am

Re: execute custom action based on executing sql steps

tanks for your advise.
during the installation wizard in progress dialog when setup begin to executing sql scripts on database, after third script i need to get a value from database and use it in next sql scripts conditions, i tried many ways, but i couldn't find a way to do it. so my question is there is any way to do that or not?

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

Re: execute custom action based on executing sql steps

Hello,
after third script i need to get a value from database and use it in next sql scripts conditions
Do you want to create a query to condition the next sql script through its Condition field? Why you don't use an IF...ELSE (Transact-SQL) to conditionally execute the code based on the condition?

If you need any help, please let me know.

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

Return to “Common Problems”