.NET ClickOnce Deployment Change Update Location at runtime-Collection of common programming errors

I’m not happy about it – http://www.pcreview.co.uk/forums/dynamically-changing-updatelocation-runtime-t2310400.html

With this code you can access ad.UpdateLocation, but, you can’t change it.

UpdateCheckInfo info = null;
if (!ApplicationDeployment.IsNetworkDeployed) return false;
ApplicationDeployment ad = ApplicationDeployment.CurrentDeployment;
ad.UpdateLocation = YOUR_FOLDER; // won't work

I think create a ApplicationDeployment at run time, and configure it all in run time is a good try… but I don’t know if it will recognize the CurrentDeployment.