I ran into this same problem when trying to use OpenFileDialog().  You need
to make a new thread with a different appartment type for the UI to show. 
Here is a sample of what I did to make it work.

  // create a new thread with appropriate apartment state to launch UI
  FileBrowser fileBrowser = new FileBrowser(session);
  Thread worker = new Thread(fileBrowser.Show);
  worker.SetApartmentState(ApartmentState.STA);
  worker.Start();
  worker.Join();

Then implement your code in the FileBrowser class displaying the
OpenFileDialog using the Show method.

-Mike
-- 
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/OpenFileDialog-fails-in-Win7-tp5538592p5542494.html
Sent from the wix-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to