Last post Mar 31, 2009 02:04 AM by chytu558
Mar 30, 2009 08:21 AM|chytu558|LINK
Mar 30, 2009 10:03 AM|wildmoose|LINK
When you say database, I take it you mean one of the file-based databases that sits in the App_Data folder? Remember that windows installer keeps a record of all of the files that it has installed and the timestamp of them. If a database is deployed and
the data is updated it will no longer match the timestamp that Windows Installer has and so it will not be deleted.
If you are using SQL Express or SQL Server it would be cleaner to use a server-based database. Instead of deploying the database MDF file, script the database into SQL scripts and add a custom action to your installer to run these scripts on install, and
to run a drop database script on uninstall. osql.exe that deploys with sql server will allow you to do this from a command line.
Mar 31, 2009 02:04 AM|chytu558|LINK