I need people's opinion on how to update a ClickOnce application through FTP

本秂侑毒 提交于 2019-11-30 15:59:12
Brunner

Do you have to use your server?

If not I suggest you look into using Dropbox as your hoster - it's free, your application is available through HTTP and publishing it is as easy as publishing it to your local Dropbox folder.

I've been using this method for some time now. Of course you can use other services - or maybe a free webhoster. (AppHarbor comes to mind.)

In case the link in the comment doesn't work any more, the key points to get this to work are:

  1. Find your public URL (left click any file in your Dropbox, copy public link), it will start with "http://dl.dropbox.com/u/xxxxxx/".
  2. Open the "Publish"-tab in your projects properties in Visual Studio.
    • As "Publishing Folder Location" use the local path to your Dropbox (subfolder), which usually under Windows 7 looks similar to C:/Users/<User>/My Dropbox/Public (you can use any subfolder you want)
    • "Installation Folder Location": Point it to http://dl.dropbox.com/u/xxxxxx/< subfolders >
    • "Update Location": Same deal as above, http://dl.dropbox.com/u/xxxxxx/< subfolders >
  3. Hit Publish
  4. Now copy your public link from Dropbox to your .application file and start distributing.

Blogpost by Michael S. Clark describing the procedure.

You can't install a CLickOnce application from an FTP server. You can only install from a file share or using http.

Another inexpensive alternative would be Windows Azure Blob Storage, which is dirt cheap and works great.

http://robindotnet.wordpress.com/2011/07/18/host-your-clickonce-deployment-in-azure-for-pennies-per-month/

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!