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

Feature State at Uninstall


3 replies to this topic

JoeThompson

JoeThompson
  • Members
  • 80 posts

Posted 27 December 2001 - 22:10

I want a certain dialog to show if the user is uninstalling and they have installed FeatureOne.
On the MaintenanceType dialog I have put the following events on the Next button:
NewDialog  ReadyToRemove _IsMaintenance = "Remove" And (&FeatureOne != 2)
NewDialog  MyDialog  IsMaintenance = "Remove" And (&FeatureOne = 2)

I thought this would show MyDialog only if FeatureOne had been installed and the user is uninstalling the product.  Anyway, I get the following error:
Internal Error 2804.  MaintenanceType, Next, _IsMaintenance = "Remove" And (FeatureOne = 2)
or something very close.  Note that the "F" in FeatureOne is underlined (from the & I assume).

What am I doing wrong?

Thank you,
Joe


JoeThompson

JoeThompson
  • Members
  • 80 posts

Posted 27 December 2001 - 22:27

Oddly enough I just fixed the problem.
It seems I should have used:
_IsMaintenance = "Remove" And (&FeatureOne <> 2)
I thought <> and != were the same???

Joe


JoeThompson

JoeThompson
  • Members
  • 80 posts

Posted 28 December 2001 - 00:38

I guess I jumped the gun a little.  It seems the state of &FeatureOne is always 0 at uninstall in the UI sequence.
How do I find out if a feature was installed or not so I can show a dialog during uninstall only if that feature was installed?

Thank you,
Joe


JoeThompson

JoeThompson
  • Members
  • 80 posts

Posted 04 January 2002 - 23:04

I guess at uninstall you need to use:
_IsMaintenance = "Remove" And (!FeatureOne = 3)
to tell that FeatureOne has been installed and we want to remove it now.