Hello and welcome to Advanced Installer forums,
I have tested your scenario using our predefined support for "SQL Databases" where I have ran an "SQL Script" with the DROP DATABASE <DatabaseName> SQL statemenet and everything worked as expected.
I suggest you to try to manually run your script ...
FOLLOW US
Get the latest news in Application Packaging