If I schedule a custom action for OnExit, is there an easy way from inside
the custom action to determine if it was being called for OnExit="success",
"error", or "cancel"? It seems like this is simple but for some reason it
escapes me.
For example if I wanted one exit dialog that showed the install status
<Custom Action="ShowCompleteForm" OnExit="error" />
<Custom Action="ShowCompleteForm" OnExit="cancel" />
<Custom Action="ShowCompleteForm" OnExit="success" />
[CustomAction]
public static ActionResult ShowCompleteForm(Session session)
{
ActionResult ar = ActionResult.Success;
try
{
using (CompleteForm form = new CompleteForm(*INSERT_STATUS_HERE*))
{
form.ShowDialog();
}
}
catch (Exception ex)
{
session.Log(ex.ToString());
ar = ActionResult.Failure;
}
return (ar);
}
Thanks!
------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users