So, this is a sort of validation to make sure the database type they've
selected is truly installed? In that case, you could call your custom action
when the user clicks the Next button on your dialog. You can do that by
adding a Publish element inside the button control, setting its Event
attribute to "DoAction" and its Value attribute to the name of your custom
action.

The custom action can display the error message, maybe using
System.Windows.Forms.MessageBox (DTF's session.Message won't work here for
displaying an error message since the CA is being called from DoAction).

And then return ActionResult.Failure.

I guess this all assumes you're using C# for the custom action.
-- 
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Call-Custom-Action-before-Install-Initialize-tp5478782p5482397.html
Sent from the wix-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to