Hi,
I'm building a MBA and I noticed that I should probably make calls to 
SendEmbeddedProgress/SendEmbeddedError when my bootstrapper is run in 
UI-less/embedded mode (during the uninstallation of the previous version in an 
uninstallation, for instance). However, there are three progress events on the 
Engine, ExecuteProgress, CacheAquireProgress and Progress. All of these have a 
ProgressPercentage and an OverallPercentage parameter. Should these be sent 
straight into SendEmbeddedProgress?
I'm asking because looking at the Burn source, it seems to be handled 
differently in BalBaseBootstrapper 
(src\libs\balutil\inc\BalBaseBootstrapperApplication.h) and WixBA 
(src\Setup\WixBA\ProgressViewModel.cs):
In the C++ version, all three call SendEmbeddedProgress, although only Progress 
updates the actual values being sent. There is a comment on the two others, 
"Send progress even though we don't update the numbers to at least give the 
caller an opportunity to cancel"
In the C# version though, only ExecuteProgress calls SendEmbeddedProgress, and 
then sends the ProgressPercentage from the event, but averages with a 
cacheProgress:
this.Progress = (this.cacheProgress + this.executeProgress) / 2; // always two 
phases if we hit execution.

What is the correct approach here?

Best regards,
Carl
------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to