Jump to content


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.
Photo

Can not drop DataBase when uninstall


2 replies to this topic

donghocat_phl

donghocat_phl
  • Full Members
  • 5 posts

Posted 24 March 2010 - 04:06

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?

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

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.

donghocat_phl

donghocat_phl
  • Full Members
  • 5 posts

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.