I thought the message pump might be the reason. I am targeting .Net 2.0 so 
there isn't a Dispatcher.Run() so I'll have to find alternative.

Thanks

Neil

-----Original Message-----
From: Rob Mensching [mailto:r...@robmensching.com] 
Sent: 14 June 2012 16:39
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] BootstrapperApplication Run

The WixBA.Run() method calls the Dispatcher.Run(). The dispatcher is the 
message pump for the UI. Without the message pump, the WPF UI won't do respond 
(even to redraws <smile/>). So, for the WixBA, it needs to run this way.

If you do not have a UI then you technically can do everything via the 
callbacks. It's actually a pretty cool way to run but you really have to think 
asynchronously and catch all the potential "exit points" so that
Engine.Quit() gets called eventually.

Note: Engine.Quit() tells the Burn engine to exit it's processing loop. The 
process starts shutting down from there. You cannot callback to the engine 
after calling Quit().  I remember a bug the Visual Studio guys were saying was 
Burn's fault because they called Engine.Quit() then tried to Log a message. The 
log was closed and threw an exception so they blamed it on me.
<smile/>  Don't call any Engine methods after Quit().



On Mon, Jun 11, 2012 at 8:57 AM, Neil Sleightholm <n...@x2systems.com>wrote:

> I have been following the WixBA as an example of how to write a 
> managed BA. In WixBA.cs the Run method is overridden and when it is 
> called the code doesn't exit this until the install is complete. Is 
> this necessary or can the code return from here and call Engine.Quit() 
> to signal to the engine that the install is complete?
>
> Neil
>
> Neil Sleightholm
> X2 Systems Limited
> n...@x2systems.com<mailto:n...@x2systems.com>
>
>
> ----------------------------------------------------------------------
> --------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and 
> threat landscape has changed and how IT managers can respond. 
> Discussions will include endpoint security, mobile security and the 
> latest in malware threats. 
> http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>



--
virtually, Rob Mensching - http://RobMensching.com LLC
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and threat 
landscape has changed and how IT managers can respond. Discussions will include 
endpoint security, mobile security and the latest in malware threats. 
http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users




------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to