I have development a Wise Installer MSI to create a database, it runs a long transact SQL script as a SQL Scripts Action. This SQL creates a database and populates it with table and view on those tables. Fine.

But when I unistall, it leaves the database behind. I would like to uninstall to drop the database.

I watched your video on custom actions, and I believe I can write a Windows App to connect and drop the database when uninstall is requested.

If this the best solution to dropping the database ? Or is there a better cleaner way to to it?

thanks, Adrian
0 Comments   [ - ] Hide Comments


Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
Answer this question or Comment on this question for clarity


You won't need to develop an application to do this: surely a simple SQL script executed with OSQL (or whatever the database client's query tool is called) will suffice? http://sqlserver2000.databases.aspfaq.com/how-do-i-drop-a-sql-server-database.html
Answered 12/17/2008 by: VBScab
Red Belt

Please log in to comment