Re: [WiX-users] dealing with functions that throw exceptions

2012-02-13 Thread Wilson, Phil
C++ custom actions have a defined signature that includes expected return 
values. 

http://msdn.microsoft.com/en-us/library/windows/desktop/aa368072(v=vs.85).aspx

You may be able to store the message in a property or anywhere else (registry?) 
to retrieve later. 

Phil W 
-Original Message-
From: Sean Farrow [mailto:sean.far...@seanfarrow.co.uk] 
Sent: Sunday, February 12, 2012 6:37 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] dealing with functions that throw exceptions

Hi;
I am currently writing a custom action dll in c++ for an installer. I've got a 
function provided that throws c++ exceptions.
What I'd like to do is return S_FALSE plus the exception message if an 
exception is thrown. Has anyone got any macrows to do this?
Any help appreciated.
Cheers
Sean.

--
Virtualization  Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


*** Confidentiality Notice: This e-mail, including any associated or attached 
files, is intended solely for the individual or entity to which it is 
addressed. This e-mail is confidential and may well also be legally privileged. 
If you have received it in error, you are on notice of its status. Please 
notify the sender immediately by reply e-mail and then delete this message from 
your system. Please do not copy it or use it for any purposes, or disclose its 
contents to any other person. This email comes from a division of the Invensys 
Group, owned by Invensys plc, which is a company registered in England and 
Wales with its registered office at 3rd Floor, 40 Grosvenor Place, London, SW1X 
7AW (Registered number 166023). For a list of European legal entities within 
the Invensys Group, please go to http://www.invensys.com/en/legal/default.aspx.

You may contact Invensys plc on +44 (0)20 3155 1200 or e-mail 
recept...@invensys.com. This e-mail and any attachments thereto may be subject 
to the terms of any agreements between Invensys (and/or its subsidiaries and 
affiliates) and the recipient (and/or its subsidiaries and affiliates).



--
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] dealing with functions that throw exceptions

2012-02-12 Thread Sean Farrow
Hi;
I am currently writing a custom action dll in c++ for an installer. I've got a 
function provided that throws c++ exceptions.
What I'd like to do is return S_FALSE plus the exception message if an 
exception is thrown. Has anyone got any macrows to do this?
Any help appreciated.
Cheers
Sean.

--
Virtualization  Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users