Need logging around the DetectUpdateBegin/DetectUpdate/DetectUpdateComplete 
events in your MBA.  Are you seeing detect being triggered twice?

If you don't return Result.Ok, then the engine won't download and parse the 
feed. If you return Result.Ok (which seems to be the case since you say in 
fiddler you see the feed being downloaded), then the feed parsing will cull any 
entries it doesn't see as valid (missing app id, bad version, etc).  Then for 
each successfully parsed update it will call back to DetectUpdate to let the BA 
decide what to do. I don't think the size should matter.  Exiting an update 
early should not cause an issue.  The A bundle will download the B bundle, 
execute it, and then cleanup via a MoveFileEx which moves the bundle B from the 
per-user cache to temp and flags it for deletion.

I don't think today the engine parsing would support modifying the feed URL.  
Since it's declarative when you create your bundle, I don't know if we'd want 
the BA to modify what the bundle developer defined. Note, there isn't anything 
preventing you from doing it like you used to, but then all the parsing is left 
on your side.


-----Original Message-----
From: Phill Hogland [mailto:phogl...@rimage.com] 
Sent: Tuesday, July 22, 2014 10:49 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] wix39.720 Burn DetectUpdate - fails to detect new version

I transitioned my mba code to model the WixBA UpdateViewModel code in wix 
3.9.720.  Initially it detected the latest new update and appeared to work as 
expected.  However the more I play with it I seem to run into a problem 
multiple times.  I am still a little unsure of how I get to this problem, but I 
think it is as follows.

Create Bundle A, move to test box.
Create Bundle B, stage to web site.
Launch Bundle A, and after checking 'Update Available' is indicated.  (Also in 
the log the message fro DetectUpdate indicating a 'Potential update' is 
available.  (At this point one can either exit Bundle A or apply the new 
update.  I am not entirely sure of the relationship to the following, but I 
think exiting is probably more related.)

Create Bundle C, and stage to web site.
Launch Fiddler to watch the http traffic.
Launch Bundle A.  Fiddler shows a feed to Bundle C was retrieved.  Bundle A 
shows 'Up to date'.  The log does not have the DetectUpdate log message 
"Potential update..."

I have seen this behavior both in a first time install (but I think always 
after a bundle was previously launched) and in a maintenance scenario with 
Uninstall, Repair, and 'Up to Date' (even though the feed shows a newer 
version).

My atom feed has the bundle size in it, otherwise it is same as wix39 feed. 
I tried setting the bundle size to zero in the feed and that did not impact 
this behavior.

On another note, unrelated to the above, I need to figure out how to modify the 
feed Url prior to downloading the feed at runtime.  I had this working in the 
old code, but I don't see where to do this as the feed appears to have been 
downloaded by the time the event handlers are fired.  Any advice?



--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/wix39-720-Burn-DetectUpdate-fails-to-detect-new-version-tp7596046.html
Sent from the wix-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and search 
up to 200,000 lines of code with a free copy of Black Duck Code Sight - the 
same software that powers the world's largest code search on Ohloh, the Black 
Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to