Hi,

I'm authoring a CA in DTF and understand that Session.Message() and
Session.Log() doesn't work for a CA that is invoked by a DoAction
ControlEvent (http://msdn.microsoft.com/en-us/library/aa368322(VS.85).aspx).

My CA is checking prerequsites when the user invokes the Next button on my
dialog.


I want to show a modal warning ("The existing database will be deleted.
Proceed yes/no?") and either continue to the next dialog or return to the
initial dialog.  I can only get the desired behaviour by launching my
warning using MessageBox.Show("MyMessage") inside the CA. (1)  But I've
noticed that just doing a MessageBox.Show("MyMessage") sometimes causes the
warning dialog to be displayed beneath the initial dialog. So I guess that I
need to set the initial dialog as the owner of my warning dialog.

Trying to use Session.Handle as the owner (properly wrapped in a
IWin32Window based class (see
http://ryanfarley.com/blog/archive/2004/03/23/465.aspx)) does not solve the
problem.

Question: What is the best way of launching the MessageBox.Show() to ensure
that it always is shown on top of the initial dialog. Do I really have to
search for the windows using the Win32 FindWindow API call?



I also want to log information, but as Session.Log() doesn't work in this
case I'm left with no idea on how to do this.  My goal is to get log
information into the log file that is generated by msiexec, just like
Session.Log() does.

Question: Is this possible?


Thanks
Steffen Enni


(1): Having the warning dialog launched using a SpawnDialog (conditioned by
a property that is set by the CA) only allows me to return to the initial
dialog (by publishing an EndDialog event with value=Return on the Yes
button). But I'm not able to proceed to the next dialog.
------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to