Hello Yan, thanks for suggestion. I don't use Return attribute at all. As
described in documentation "check" value is default. For this moment I use
defined in WiX source file custom action with Type 19:
        <CustomAction Id="CustomActionError"
Error="$(var.ErrorCustomAction)" />
and invoke it from my custom action if some error occurred with
Session.DoAction method. This helps me to block installation on error in
current action.

-----Original Message-----
From: Yan Sklyarenko [mailto:y...@sitecore.net] 
Sent: Friday, September 24, 2010 4:07 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Error in Custom Action

Can this be the case that you have Return='ignore' in the custom action
definition? I suppose in this case returning ActionResult.Failure will be
ignored.

-- Yan

-----Original Message-----
From: Alexander Kozlenko [mailto:alexander.kozle...@hotmail.com]
Sent: Thursday, September 23, 2010 01:50
To: 'General discussion for Windows Installer XML toolset.'
Subject: [WiX-users] Error in Custom Action

What is the best way to block installation on error in Custom Action? I used
ActionResult.Failure result value but installation continues to install.
Only throwing an exception of type InstallerException helps me to block
installation. Thanks.

Alexander Kozlenko


------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to