Can you guys tell me how it should be done? I have out of browser app with a button. The Button does this:
Application.Current.CheckAndDownloadUpdateCompleted
+= (object sender, CheckAndDownloadUpdateCompletedEventArgs e)
=> MessageBox.Show(e.UpdateAvailable.ToString());
Application.Current.CheckAndDownloadUpdateAsync();
I run the app, add something, rebuild the app, click on the button - it says false.
What could be wrong with that?
UPD: BTW... it's OOB App
UPD2: I tested with Fiddler. It get's the xap, but still doesn't update
There is an Error member on the EventArgs, maybe you should check it?
For instance:
if (e.Error != null)
{
if (e.Error is PlatformNotSupportedException)
{
// Require a Silverlight plugin update
}
else if (e.Error is SecurityException)
{
// Require an elevation
}
}