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

Drop database during uninstall based on checkbox v


7 replies to this topic

Teddy

Teddy
  • Members
  • 8 posts

Posted 18 January 2005 - 09:38

Dear All,

I put a checkbox in ReadyToRemove dialog box, the property name of the checkbox is UNINSTDB, it used as the user options, if he/she want to drop the database during uninstall then he/she has to check the checkbox otherwise uninstall will not drop the database .. how to deal with this .. please advise .. thanks a lot in advance

Regards
TC

Attached Files



Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 19 January 2005 - 10:06

You posted this question in two sections of this forum. Which project type are you using:
- "Basic MSI"
- "InstallScript MSI" (not recommended)
- (pure) "InstallScript"

Teddy

Teddy
  • Members
  • 8 posts

Posted 19 January 2005 - 10:30

Basic MSI .. any idea?

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 19 January 2005 - 10:50

Add a custom action to run the drop script, and use UNINSTDB as a condition for this custom action.
Or if you are running InstallShield X or above, add the drop script to the SQL Server view and add UNINSTDB as a condition.

Teddy

Teddy
  • Members
  • 8 posts

Posted 20 January 2005 - 02:23

Hi..

I did it but it still not working.. I meant the database still dropped although I have setted the SQL script run time condition to UNINSTDB <> "" .. BTW .. I am using IS 10.5.. any comment?

Thanks

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 20 January 2005 - 15:50

Did you generate a log to check the ´real value of UNINSTDB?

Teddy

Teddy
  • Members
  • 8 posts

Posted 20 January 2005 - 16:52

Hi .. I am very new with this, I don't know what you mean exactly..could you please more detail .. many thanks in advance

Regards
Teddy

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 21 January 2005 - 13:43

This article lists some ways to generate a MSI log:
http://www.msifaq.com/a/1022.htm