Is there any way to make deployed clients change their update location (through code)
Apparantly
ApplicationDeployment.CurrentDeployment.UpdateLocation
is readonly, which is a major annoyance. I am doing updates checks and download through code, which is working ok, but I really wish I had some way of controling the location - for several reasons:
1) I'd like to make an update check to a secondary location in case the primary site is down.
2) I'd like to be able to move the publish site. Right now my clients are locked into the origional URL they downloaded from.
3) I'd like to have the posibility of differentiating the update site based on the customer. I already have a webservice runing that the clients check for customer specific info, and I'd like to use that info to set the client UpdateLocation at runtime.

Changing ClickOnce update/publish location
Taslim
After saying that:
1, Redundancy on a web server is not the responsibility of the app, you need to add redundancy through your web farm or a tricky way would be to have a domain name that you would update the IP if the original server went down
2,You can change the update location by deploying your app from the new location by publishing your app on both locations with the newlocation set as the 'start location'.
3, If you want differentiation, use a different site to publish your app (this can be accomplished by just using a different directory on one web site and setting different apps with different update locations.
Matt
neil_fl
Hi,
You can change the application path using the MageUI.exe tool which is given by Microsoft along with Visual Studio 2005.
Regards
Satish