Autoupdating .net applications

白昼怎懂夜的黑 提交于 2019-12-04 13:37:35

问题


I've written 2 reasonably large scale apps in .net so far, and both of them have needed an updating facility to automatically update the application when I roll out new code.

I've found the 'Enterprise application block updater' a bit too complex for my needs, and I've found 'click once' frustrating when it comes to publishing.

The most adequate updating code I've found is the .net Application Updater Component, which I've used for both projects. I've had to modify it recently because it uses web dav, which isn't always installed on our web servers (it still needs directory browsing, however).

I'm surprised that there isn't more on the web about automatically updating applications, and was wondering whether people have had success with any other methods than the ones mentioned above?


回答1:


See the answers to this similar question: a few auto-update frameworks were recommended there which are designed for (or work with) .net apps:

  • Application Updater Block (which you mention)
  • ClickOnce,
  • ClickThrough



回答2:


At my company, we use a custom inhouse updater for our applications. It's embedded as as a resource in the main application executable and when the application needs to update, the updater is extracted, written to disk and launched to do the update. The updater can download a .msi and launch it or it can download a zip file and unzip it's content int the application folder. Pretty simple and effective.




回答3:


Try an off-the-shelf autoupdate product: http://www.AutoUpdatePlus.com




回答4:


Try AutoUpdater.NET class library for .net created by me. You just need to add One line of code in and user can update your application with ease.



来源:https://stackoverflow.com/questions/49747/autoupdating-net-applications

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