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

How do i recognise Uninstall mode?


2 replies to this topic

Darren Forsdike

Darren Forsdike
  • Members
  • 11 posts

Posted 10 January 2002 - 12:17

I have a setup program and within the OnBegin event have a messagebox, the problem is that when i Uninstall this setup the message box appears when i do not want it to appear in this mode.

I have used Maintenace in an IF statement but this statement is for maintenance mode and uninstall mode what can i do to get it to flag when just in uninstall mode?



Taco Bell

Taco Bell

    IS6 Expert

  • Moderators
  • 1,281 posts

Posted 10 January 2002 - 19:25

Unfortunately, there isn't a flag for just the uninstall mode

My suggestion would be to append a custom argument to the uninstall command.  Then have OnBegin check for this argument.  If it's available you know you're uninstalling and should therefore display the messagebox.


lasenbby

lasenbby
  • Members
  • 744 posts

Posted 11 January 2002 - 18:55

Or make your own.  In onbegin set a bool, say bFullUninstall to FALSE.  Then where you call componentremoveall or componentreinstall set it appropriately.  Make it global and you can use it throughout your script.