SetUpdate is not to set an updated feed to download, it's to point the engine 
at the updated bundle after the feed has been processed.  This behavior hasn't 
changed from 3.8.  The only way I can see you being able to update the url at 
runtime in your bundle is to use the 3.8 feed processing logic within your 
bundle (and not return Result.Ok from DetectUpdateBegin).

-----Original Message-----
From: Phill Hogland [mailto:phogl...@rimage.com] 
Sent: Wednesday, July 23, 2014 9:43 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] OnDetectUpdateBegin call to SetUpdate causes 
exception/Assert

If I add a call to Engine.SetUpdate in mba DetectUpdateBegin, as done in the 
past, when this call returns successfully, the DetectUpdateBeginEventArgs 
e.UpdateLocation not accessable.  Any attempt to log this value causes an 
exception, the thread terminates and DetectUpdate handler is never called.

If I avoid touching any of the DetectUpdateBeginEventArgs in the rest of 
DetectUpdateBegin, after a successful call to SetUpdate, but step out of the 
function down into Detect.cpp Ln 253 (wix 3.9.720) The pUpdate arg of 
DetectAtomFeedUpdate is NULL, which then causes an Assert, and this thread 
terminates.

Where can I call Engine.SetUpdate after I can evaluate the Update URL?

(The purpose in doing this is to modify the authored Update/@Location at 
runtime, depending on whether a tester is testing from a QA download site or 
not.  The authored location points at the 'live' download site.  This approach 
was authored based on old discussions here and was working prior to changing 
the mba to use new wix 3.9.720 features.)

It looks like SetUpdate can never be called safely. Or is the issue that after 
call to SetUpdate I need to make some other call like DetectReset?

Any advice would be appreciated.  Thanks Phill.





--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/OnDetectUpdateBegin-call-to-SetUpdate-causes-exception-Assert-tp7596059.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