We dealt with the same problem in http://msiext.codeplex.com - wanting to show 
the user a meaningful error message. All errors bubble up as exceptions and all 
custom actions set the CA_ERROR property to the error message that usually 
includes the error code. 

Sanjay: did you write the CA?

This is something that could be a good feature request for all wix custom 
actions.

dB. @ dblock.org 
Moscow|Geneva|Seattle|New York



-----Original Message-----
From: Christopher Painter [mailto:chr...@deploymentengineering.com] 
Sent: Thursday, September 30, 2010 2:45 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] how to get error code returned by custom action

Windows Installer has no such concept of return codes when calling custom 
actions.   To get the behavior you are looking for will depend on what kind of 
custom action you are using.
 
Christopher Painter, Author of Deployment Engineering Blog Have a hot tip, know 
a secret or read a really good thread that deserves attention? E-Mail Me



----- Original Message ----
From: Sanjay Rao <s...@noida.interrasystems.com>
To: wix-users@lists.sourceforge.net
Sent: Thu, September 30, 2010 1:36:32 PM
Subject: [WiX-users] how to get error code returned by custom action

  Hi,

Does anybody have any idea, how to get the error code returned by a 
custom action? I want to display a dialog box based upon the return code 
of the custom action.

Regards,
Sanjay Rao

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



      

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to