Cannot abort during SQL script execution - Advanced Installer Community
Antarctica
Posts: 110
Joined: Tue Jul 08, 2014 9:24 am

Cannot abort during SQL script execution

My installer (made with 12.6.1) sometimes hangs during SQL script execution.

The SQL script has run for half an hour, it should already have aborted with timeout a long time ago.

So I try to abort setup ("Cancel" -> "Are you sure" -> "Yes"), but nothing happens.

The only possibility to try again is to reboot the computer, because if I use TaskManager to kill the process, Windows Setup tells me that "another setup is running" when trying again.

I am not sure what exactly is happening, but an Advanced Installer setup should be able to abort during SQL scripts.

The last lines of the verbose log are

Code: Select all

AI_SqlConfig: Verbindung: PredefinedConnection Script: CreateStoredProcedures
AI_SqlConfig: Verbindung: PredefinedConnection Script: CreateStoredProcedures
AI_SqlConfig: Verbindung: PredefinedConnection Script: CreateStoredProcedures
AI_SqlConfig: Verbindung: PredefinedConnection Script: CreateStoredProcedures
AI_SqlConfig: Verbindung: PredefinedConnection Script: CreateStoredProcedures
AI_SqlConfig: Verbindung: PredefinedConnection Script: CreateStoredProcedures
AI_SqlConfig: Verbindung: PredefinedConnection Script: CreateStoredProcedures
AI_SqlConfig: Verbindung: PredefinedConnection Script: CreateStoredProcedures
AI_SqlConfig: Verbindung: PredefinedConnection Script: CreateStoredProcedures
AI_SqlConfig: Verbindung: PredefinedConnection Script: CreateStoredProcedures
AI_SqlConfig: Verbindung: PredefinedConnection Script: CreateStoredProcedures
AI_SqlConfig: Verbindung: PredefinedConnection Script: CreateStoredProcedures
AI_SqlConfig: Verbindung: PredefinedConnection Script: CreateStoredProcedures
AI_SqlConfig: Verbindung: PredefinedConnection Script: CreateStoredProcedures
AI_SqlConfig: Verbindung: PredefinedConnection Script: CreateStoredProcedures
AI_SqlConfig: Verbindung: PredefinedConnection Script: CreateStoredProcedures
AI_SqlConfig: Verbindung: PredefinedConnection Script: CreateStoredProcedures
AI_SqlConfig: Verbindung: PredefinedConnection Script: CreateStoredProcedures
AI_SqlConfig: Verbindung: PredefinedConnection Script: CreateStoredProcedures
AI_SqlConfig: Verbindung: PredefinedConnection Script: CreateStoredProcedures
AI_SqlConfig: Verbindung: PredefinedConnection Script: CreateStoredProcedures
AI_SqlConfig: Verbindung: PredefinedConnection Script: CreateStoredProcedures
AI_SqlConfig: Verbindung: PredefinedConnection Script: CreateStoredProcedures
AI_SqlConfig: Verbindung: PredefinedConnection Script: CreateStoredProcedures
AI_SqlConfig: Verbindung: PredefinedConnection Script: CreateStoredProcedures
AI_SqlConfig: Verbindung: PredefinedConnection Script: UpdateSchema
AI_SqlConfig: Verbindung: PredefinedConnection Script: UpdateSchema
AI_SqlConfig: Verbindung: PredefinedConnection Script: UpdateSchema
AI_SqlConfig: Verbindung: PredefinedConnection Script: UpdateSchema
Am I safe to assume that the issue is located between the third and the fourth "GO" statement in the UpdateSchema script?
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Cannot abort during SQL script execution

Hello,

I cannot say why this happens. Can you please send us the .AIP (project file) and a verbose log of a hanging installation to support at advancedinstaller dot com so we can investigate them? Also, please enable the "Log errors to file" option on your SQL Connection added in "SQL Databases" page and send us the "AI_SQLScripts.log" log file too.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Antarctica
Posts: 110
Joined: Tue Jul 08, 2014 9:24 am

Re: Cannot abort during SQL script execution

I have tried to do as you mentioned, but the error cannot be reproduced today with the same aip file. It seems everything is working fine. I will keep this answer in mind should the issue occur again.

Return to “Common Problems”