antidotcb
Posts: 34
Joined: Mon May 17, 2010 8:10 am

Installation cannot be cancelled during SQL scripts

Hi there

I have following problem.
I use several SQL scripts to be executed during installation, all of these scripts run in one connection.
When installation process goes, there is progress bar with status text on ProgressDialog.
When Status is "Executing install SQL scripts" and I press Cancel - following dialog appears:
cancel sql.png
cancel sql.png (63.8 KiB) Viewed 2555 times
I press Yes, but nothing happens, nor on button press, not later - I get successful installation, but no cancel & rollback.
Are your SQL custom actions interactive? Why installation isn't cancelled by pressing "Yes" on cancel dialog?

P.S. After SQL scripts there are several my own CA (written in C++), they are a little bit long and have different status - but whenever I want I can cancel installation and start rollback process.
Daniel
Posts: 8276
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Installation cannot be cancelled during SQL scripts

Hello,

Indeed, this is an Advanced Installer issue. The installation process cannot be cancelled during SQL Scripts execution. I have added this improvement on our TODO list and it will be available in a future version of Advanced Installer, thank you for bringing it to our attention.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”