{"id":5470,"date":"2014-03-30T22:24:51","date_gmt":"2014-03-30T22:24:51","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/net-clickonce-deployment-change-update-location-at-runtime-collection-of-common-programming-errors\/"},"modified":"2014-03-30T22:24:51","modified_gmt":"2014-03-30T22:24:51","slug":"net-clickonce-deployment-change-update-location-at-runtime-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/net-clickonce-deployment-change-update-location-at-runtime-collection-of-common-programming-errors\/","title":{"rendered":".NET ClickOnce Deployment Change Update Location at runtime-Collection of common programming errors"},"content":{"rendered":"<p>I&#8217;m not happy about it &#8211; http:\/\/www.pcreview.co.uk\/forums\/dynamically-changing-updatelocation-runtime-t2310400.html<\/p>\n<p>With this code you can access ad.UpdateLocation, but, you can&#8217;t change it.<\/p>\n<pre><code>UpdateCheckInfo info = null;\nif (!ApplicationDeployment.IsNetworkDeployed) return false;\nApplicationDeployment ad = ApplicationDeployment.CurrentDeployment;\nad.UpdateLocation = YOUR_FOLDER; \/\/ won't work\n<\/code><\/pre>\n<p>I think create a ApplicationDeployment at run time, and configure it all in run time is a good try&#8230; but I don&#8217;t know if it will recognize the CurrentDeployment.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m not happy about it &#8211; http:\/\/www.pcreview.co.uk\/forums\/dynamically-changing-updatelocation-runtime-t2310400.html With this code you can access ad.UpdateLocation, but, you can&#8217;t change it. UpdateCheckInfo info = null; if (!ApplicationDeployment.IsNetworkDeployed) return false; ApplicationDeployment ad = ApplicationDeployment.CurrentDeployment; ad.UpdateLocation = YOUR_FOLDER; \/\/ won&#8217;t work I think create a ApplicationDeployment at run time, and configure it all in run time is a good [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-5470","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5470","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=5470"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5470\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=5470"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=5470"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=5470"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}