Execute SQL-Script at the beginning? - 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!

hallolu
Posts: 22
Joined: Mon Dec 06, 2010 8:03 am

Execute SQL-Script at the beginning?

Hello,

is there anny possibility to execute a sql-script at the beginning and save the return value in a property?
I want to change the dialog depending on the return-value from my sql-script.
At the end, the other sql-scripts should be executed.

:)
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Execute SQL-Script at the beginning?

Hello and welcome to the Advanced Installer Forums,

Unfortunately running an SQL Script can be done using an ODBC connection first, thus not earlier then the "InstallODBC" standard action. Here is an example from our user guide of what I mean.
If you need to run SQL Scripts in the "InstallUISequence" you will need to do so from within your own custom action. If you have already installed and ODBC driver then all you need to do is create the custom action that refers to that driver and handles the data. Otherwise you will need to create the whole ODBC connection mechanism from within your custom action.

Regards,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”