ClickOnce是否仍然可以进行Windows Forms应用程序部署? [英] Is ClickOnce still the way to go for Windows Forms application deployment?

查看:153
本文介绍了ClickOnce是否仍然可以进行Windows Forms应用程序部署?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

ClickOnce仍然是Windows Forms应用程序部署的方法?



我刚刚在寻找涵盖ClickOnce部署的图书,而且似乎没有许多人都在那里,而那些是几岁(?)。






附加注释我在做什么:




  • 可执行文件和一个数据库文件( SQLite

  • 数据库(SQLite)有时需要被应用程序更新(例如,添加表,添加列) / li>
  • 数据库数据(只是SQLite的一个文件)需要保持跨越升级的路线。


解决方案

ClickOnce仍然是一个惊人的技术。它可以从您的身边处理大量的重量,但会消除您可以在Windows Installer中使用的一些自定义设置。



直接从MS的话, ClickOnce克服部署中的三个问题:




  • 更新应用程序的难度。使用Microsoft Windows Installer部署,每当应用程序更新时,用户必须重新安装整个应用程序;通过ClickOnce部署,您可以自动提供更新。只有已经更改的应用程序的那些部分才被下载,然后从新的并行文件夹重新安装完整的更新的应用程序。


  • 影响用户的电脑。通过Windows Installer部署,应用程序通常依赖于共享组件,具有版本控制冲突的潜力;使用ClickOnce部署,每个应用程序都是独立的,不能干扰其他应用程序。


  • 安全权限。 Windows Installer部署需要管理权限,并且只允许有限的用户安装; ClickOnce部署允许非管理用户安装并授予应用程序必需的代码访问安全权限。




I建议您全面阅读: MSDN - ClickOnce部署。另外,如果对Google(Chrome)来说足够好,对我们大多数人来说,这对我们大多数人来说是非常好的;)


Is ClickOnce still the way to go for Windows Forms application deployment?

I've just been looking for books that cover ClickOnce deployment and there don't seem to be many at all out there, and the ones that are are a few years old(?).


Additional notes re what I'm doing:

  • An executable and one database file (SQLite)
  • Database (SQLite) will need to be updated sometimes by the application (e.g. add table, add column)
  • Database data (which is just a file for SQLite) needs to remain across upgrades of course

解决方案

ClickOnce is still an amazing technology. It takes care of a large amount of heavy lifting from your side, but takes away some customizations that you can use with the Windows Installer.

Directly from the words of MS, ClickOnce overcomes three issues in deployment:

  • Difficulties in updating applications. With Microsoft Windows Installer deployment, whenever an application is updated, the user must reinstall the entire application; with ClickOnce deployment, you can provide updates automatically. Only those portions of the application that have changed are downloaded, then the full, updated application is reinstalled from a new side-by-side folder.

  • Impact to the user's computer. With Windows Installer deployment, applications often rely on shared components, with the potential for versioning conflicts; with ClickOnce deployment, each application is self-contained and cannot interfere with other applications.

  • Security permissions. Windows Installer deployment requires administrative permissions and allows only limited user installation; ClickOnce deployment allows non-administrative users to install and grants only those Code Access Security permissions necessary for the application.

I recommend giving this a thorough read: MSDN - ClickOnce Deployment. Also, if it's good enough for Google (Chrome), it's good enough for most of us ;)

这篇关于ClickOnce是否仍然可以进行Windows Forms应用程序部署?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆