Once a Silverlight application has been installed as an out-of-browser application, I know I can update it by calling the Application.Current.CheckAndDownloadUpdateAsync()
method. This will check the URL where the XAP was originally downloaded and update if necessary.
But what if, somewhere in the future, I would want or need to change the url of the XAP? The domain name changes, the location on my site, etc.
Is there a way of indicating where the OOB application should check for the update?
Now I know of the /origin
property, but as far as I know, there's no way to set this when you let the user just install it by clicking on a button on your site (or right clicking in the application). Also, I don't know of a way of changing it at a certain point in time. Other than letting the user do it manually, that is. But that's not very user-friendly.
If it is entirely not possible, maybe a redirect could do the trick?
So is there a way to programmatically define/change the URL of a XAP?