You could set a property when the user clicks Cancel, and have the Custom 
Action check for it.

Rob

Young Jun Hong wrote:
> Hello all,
>  
> I'm a newbie to WiX, and I made a custom deferred action and the 
> corresponding rollback action in VB script. I found that the rollback 
> action is being executed both of when users click the cancel button and 
> when the corresponding deferred custom action encounters an error.
>  
> I'm looking for a way to distinguish the actual event kicking off the 
> rollback action so that I can take different execution paths depending 
> on the type of the event.
>  
> For example, I'd like to have the folowing kind of code in the rollback 
> action:
>  
> If(Session.Satus == User.ClickCancel)
> {
>           Do something;
> }
> else if(Session.Status == Error)
> {
>           Do something;
> }
>  
> I also checked conditions for custom actions such as Installed, 
> $Component, &Feature, and Patch, but I couldn't find the property for 
> this purpose.
>  
> Please let me know what is the best way to distinguish rollback actions 
> between from user cancelation and runtime-error.
>  
>  
> Thanks in adavnce, 
> Young
> 
> 
> ------------------------------------------------------------------------
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >>  http://get.splunk.com/
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to