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!

asolorzano
Posts: 3
Joined: Wed Feb 04, 2015 7:37 pm

Error Handling at SQL Scripts Feature

Hi,

I am working with the SQL Scripts Window to configure the scripts that are going to be executed during installation.

When there is an error I can see a message like the one below.
sql-script-error-msg.png
sql-script-error-msg.png (23.54 KiB) Viewed 4270 times
I would like to know if with the SQL Scripts functionality I can show a message that allows the user to identify which script failed (with the name of the file) and if I can log the SQL errors to a log file.

I am using Advanced Installer 10.7.1 (Enterprise License). Are there any new features added since that version, would it help if I upgrade to a new version of Advanced Installer?

Regards,

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

Re: Error Handling at SQL Scripts Feature

Hi Abel and welcome to Advanced Installer forums,
I would like to know if with the SQL Scripts functionality I can show a message that allows the user to identify which script failed (with the name of the file) and if I can log the SQL errors to a log file.
In order to log errors to a file, you can enable the Log errors to file option from the Connections properties.
If this option is enabled and an error occurs a log file with the name AI_SQLScripts.log will be automatically generated by the installer in the user's Temp folder, containing the error message.
I am using Advanced Installer 10.7.1 (Enterprise License). Are there any new features added since that version, would it help if I upgrade to a new version of Advanced Installer?
Each new version of Advanced Installer brings new features and enhancements to the existing ones. Also, bug fixes are added.
Please take a look on the Release 11.8 Notes of Advanced Installer.

If you have other quesitons, please let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
asolorzano
Posts: 3
Joined: Wed Feb 04, 2015 7:37 pm

Re: Error Handling at SQL Scripts Feature

Hi Dan,

Thanks for your quick reply.

I was requested to show a message with the SQL error and the name of the script file (I added several scripts files to a Transaction) where the error occurred. This would make it easier to troubleshoot the error because we know which is the script where the error was thrown. Is this possible with the SQL Scripts Feature or would it be better for me to create a custom action that executes the Scripts and show the message with the name of the SQL Script where occurred, in case of error?

Related to log to a error file, I see that the feature Log errors to file was introduce in version 11.0, according to your previous post http://www.advancedinstaller.com/forums ... =2&t=26764. Then, I assume I would need to upgrade my license.

Regards,

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

Re: Error Handling at SQL Scripts Feature

Hi Abel,
I was requested to show a message with the SQL error and the name of the script file (I added several scripts files to a Transaction) where the error occurred. This would make it easier to troubleshoot the error because we know which is the script where the error was thrown
I'm afraid we don't have support for this.
I have added this improvement on our TODO list and it will be available in a future version of Advanced Installer. Thank you for your suggestion.

I will notify you on this thread when the improvement will be available.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
asolorzano
Posts: 3
Joined: Wed Feb 04, 2015 7:37 pm

Re: Error Handling at SQL Scripts Feature

Thanks Dan,

We will be waiting for that feature.

Regards,

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

Re: Error Handling at SQL Scripts Feature

You're welcome Abel,

If you have other questions, please let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Error Handling at SQL Scripts Feature

Hello,

This improvement has been added in version 11.9 of Advanced Installer released on March 17th, 2015.

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

Return to “Building Installers”