Thanks Jason. I also arrived at this conclusion too and the only thing I
haven't figured out is how to access the session (to change properties).

I've analyzed a verbose msiexec log to see how the WixUI does things. WixUI
can do events to set properties and WixUI can also call a custom action (and
if you are using DTF for the Custom action you have access to the session
right there in the scope of your custom action).

In the EmbeddedUI sample, is it possible to get at the session (or any other
method of setting a property) during ProcessMessage()?


On Fri, May 29, 2009 at 7:50 PM, Jason Ginchereau <jason...@microsoft.com>wrote:

> You're not doing anything wrong -- EmbeddedUI was unfortunately not
> designed in a way that allows that kind of flexibility. You'll need to use
> an external UI handler for the things you want to do.
>
>
> -----Original Message-----
> From: AG Crum [mailto:crum.and...@gmail.com]
> Sent: Friday, May 29, 2009 7:42 AM
> To: wix-users@lists.sourceforge.net
> Subject: [WiX-users] EmbeddedUI Install Execute Sequence
>
> I've noticed that if you are using an EmbeddedUI, actions like
> FindRelatedProducts and LaunchConditions don't work.
>
> The reason is that those actions are sequenced AFTER the embeddedui
> initializes. My experience is that you have to do all of your custom UI
> work
> within the scope of Initialize() and then once Initialize() returns true
> the
> "INSTALL" action is set and then everything in the Execute Sequence is
> executed (the DTF EmbeddedUI sample does this too). The only trouble is,
> LaunchConditions are executed at the time of Install, not before a
> "launch".
> More importantly, I haven't figured out a way to determine upgrade
> scenarios
> and present different options in the UI based on whether an upgrade is
> detected or not.
>
> Seems like a design error, but I could be doing something blantantly wrong.
> Anybody else have this experience? I am fully aware that the EmbeddedUI
> session is limited to setting/getting properties, but I think the problem
> stems from the fact that some crucial properties aren't set until after the
> embeddedUI is intialized--in which case the MSI server process takes over
> and wants to execute the install.
>
>
>
> ------------------------------------------------------------------------------
> Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
> is a gathering of tech-side developers & brand creativity professionals.
> Meet
> the minds behind Google Creative Lab, Visual Complexity, Processing, &
> iPhoneDevCamp as they present alongside digital heavyweights like Barbarian
> Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to