Hi everybody!
When install, i create MySQL DB by SQL Scripts in Installscript MSI, it's done well.
When Uninstall/remove, i want to drop DB. I too use SQL scripts, SQL Script file ran OK but DB was not Droped.
My SQL Script file: "DROP DATABASE IF EXISTS DBname"
Pls, help me?
This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.

Can not drop DataBase when uninstall
Started by
donghocat_phl
, Mar 24 2010 04:06
2 replies to this topic
Posted 24 March 2010 - 11:34
You may need to adjust the conditions on the script. I think by default it only gets executed when the associated component gets installed, not during uninstall.
Stefan Krüger
InstallSite.org twitter facebook
Posted 24 March 2010 - 12:03
QUOTE (Stefan Krueger @ 2010-03-24 11:34) |
You may need to adjust the conditions on the script. I think by default it only gets executed when the associated component gets installed, not during uninstall. |
I also try execute script that drop MySQL DB when install but it's not done.
While sql scripts such as: create, insert,... are OK
Otherwise, I try delete DB from command line, it's OK.