How to update XBAP to latest version on client computer? How to update XBAP to latest version on client computer? wpf wpf

How to update XBAP to latest version on client computer?


You could try something like this, although I use it in XAPs not XBAPs it might work for you too:

(snippet follows)

public partial class App : Application{    /// <summary>    /// Creates a new <see cref="App"/> instance.    /// </summary>    public App()    {        Application.Current.CheckAndDownloadUpdateAsync();        // rest of code

EDIT

Was gonna suggest incrementing version number between publishes but it seems that's already been taken care of. Does this behavior happen on all browsers ? Might be some IE-specific bug/oddity (i've seen plenty of IE-only misbehaviors... wouldn't surprise me)


Years ago, we had this problem with an ordinary website. It kept haunting us, and in the end, we ended up changing the url prefix for each new version. The very first page was never cached, and forwarded to the updated url.

Its a workaround, I know, but a very reliable one.


You can use ClickOnce to deploy your application. If you want to force user to update just set minimum required version for the application (it's in Application Updates dialog box).