Groups | Blog | Home
all groups > visual studio .net setup > july 2004 >

visual studio .net setup : Custom Action Returning Error


ashok820 NO[at]SPAM hotmail.com
7/13/2004 1:05:21 PM
Hello,

I have created an msi which calls an executable as a custom action. If
an error occurs inside the custom action exe and I throw it, the
exception is treated as unhandled. Is there a way for me send the
error back to the msi when my custom action is an executable?

Thanks
Phil Wilson
7/14/2004 1:56:35 PM
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/custom_action_return_values.asp

If you return a non-zero exit code, Windows Installer will treat the result
as failure of the custom action.
--
Phil Wilson [MVP Windows Installer]
----
[quoted text, click to view]

AddThis Social Bookmark Button