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

Custom Actions & Uninstall


6 replies to this topic

Superfreak3

Superfreak3
  • Full Members
  • 437 posts

Posted 29 August 2001 - 16:16

Is there any way of preventing Custom Actions from firing off during an uninstall?  The deferred CAs fire after Register Product on the install.  

They basically call .exe's.  On the remove or uninstall the .exe's are removed which causes the CAs to error and causes a rollback.  I currently have a cheesy little work-around as I have marked the .exe's as permanent then the CAs can fire during uninstall.

Our exe's, which basically update access databases, throw unsightly errors on the screen, however, since the database it is to update has been removed.  It's weak, but prevents a rollback.  This does not always work correctly on 2K boxes though.

Is there any way to clean this up by preventing them from firing at all?  What, if any, condition can I use?

Any help is GREATLY appreciated as I am up against a deadline!


Ian Blake

Ian Blake
  • Members
  • 483 posts

Posted 29 August 2001 - 16:28

RTFM
Windows Installer
  Installer Database
     Using the Installer Database
        Conditional Statement Syntax

eg.
$ComponentName=3


Superfreak3

Superfreak3
  • Full Members
  • 437 posts

Posted 29 August 2001 - 17:01

Is that &ComponentName=3 or $ComponentName=3

Superfreak3

Superfreak3
  • Full Members
  • 437 posts

Posted 29 August 2001 - 17:02

Is that &ComponentName=3 or $ComponentName=3

Superfreak3

Superfreak3
  • Full Members
  • 437 posts

Posted 29 August 2001 - 17:52

Forget that last one.  I overlooked that bit of info in the link.

Thanks!  I'll let you know!


Superfreak3

Superfreak3
  • Full Members
  • 437 posts

Posted 29 August 2001 - 21:30

Thanks Ian!  That worked fine!!!