Download older version of silverlight update#
If the major or minor version is different, then the Silverlight client can act appropriately such as displaying an update message box or button to perform the CheckAndDownloadUpdateAsync() call. It could be as simple as getting a text file that has only the expected Silverlight version and the new XAP version. Getting the version from the server could be as complicated as reading the newer version’s manifest file, read the new file date and time, or newer folder date and time. The server call could be as complicated as a WCF service, ASMX service, Web Method call, or an HTTPRequest to get the online version information. The Silverlight client can call the web server to get the new version number using other networking connectivity options. Not everyone wants to increase the newer version number for a rollback version. Q: What if we want to make the newer XAP file replacement optional? Here are some thoughts. It makes sense, but real development teams have recovery plans when updating production versions.
Download older version of silverlight install#
Can’t revert to a previous stable version and have it install over a newer bad version.An enum for the actual error reason may be better. The try-catches do the job as long as we have every possible error type in a catch. A bunch of try-catches are therefore necessary. We must then look at *ALL* of the possible error class types placed in the error collection. Returns a false for the “UpdateAvailable” property for several reasons such as the new XAP is not signed, is a newer Silverlight Version, or various other errors.This would allow the UI to show the current version and available update version. A flag to just detect a newer version would be better. Can’t download the update and make it optional to install and replace the currently running XAP.If a failure occurs, failure exception types are provided for recovery such as “PlatformNotSupportedException”.Detect the current Silverlight version vs.Download the new XAP file and compare the current version against the downloaded version from the manifest.Connect to the original authorized URL that it was installed from.Detect network connectivity (and sometimes it fails miserably…).In the spirit of sharing, here’s what I see so far. With an asynchronous method and no parameters, what can we expect? With a huge team in Redmond working for us and trying to meet deadlines, we get what we get. This method does a lot for us but is rather limited. In the current version, we’re given the method, CheckAndDownloadUpdateAsync(). I’ve been looking at the Silverlight Out-Of-Browser support and the easy update feature.