Rollback CustomAction Question

3 Messages Forum Options Options
Permalink
andywhitt
Rollback CustomAction Question
Reply Threaded More
Print post
Permalink
I have a CustomAction rollback in my Wix File that looks like this:

<CustomAction Id="Rollback" FileKey="MyEXE" ExeCommand="rollback" Execute="rollback" Return="check" Impersonate="no" HideTarget="yes"/>
     
<InstallExecuteSequence>
     <Custom Action="Rollback" Before="MsiUnpublishAssemblies"/>

This never gets called If i fake a failure or press cancel. I want my CustomAction to run on any rollback.

Any ideas what I'm doing wrong?

Thanks
andywhitt
Re: Rollback CustomAction Question
Reply Threaded More
Print post
Permalink
anyone? :)
John Nannenga
Re: Rollback CustomAction Question
Reply Threaded More
Print post
Permalink
Your rollback script will only be invoked if failure was realized after your rollback script was scheduled.

Bear in mind, the Immediate vs. Deferred execution context.  Rollback happens only in the deferred sequence.

So, is your failure that you "fake" in the deferred sequence after MsiUnpublishAssemblies?

-----Original Message-----
From: wix-users-bounces@... [mailto:wix-users-bounces@...] On Behalf Of andywhitt
Sent: Tuesday, July 22, 2008 9:36 AM
To: wix-users@...
Subject: Re: [WiX-users] Rollback CustomAction Question


anyone? :)
--
View this message in context: http://www.nabble.com/Rollback-CustomAction-Question-tp18448323p18589420.html
Sent from the wix-users mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@...
https://lists.sourceforge.net/lists/listinfo/wix-users


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@...
https://lists.sourceforge.net/lists/listinfo/wix-users