ClickOnce 部署以及何时使用它
我已经研究过 ClickOnce 和 WindowsInstaller。在这两个 ClickOnce 中,ClickOnce 似乎具有更多我正在寻找的功能。您认为 ClickOnce 存在哪些弱点?什么时候应该使用这种方法,什么时候不应该使用这种方法?
我想要一种无需用户交互即可自动更新软件的方法。我希望它在后台和启动时完成。使用自定义逻辑和自定义版本检查系统可以更好地实现这一点吗?
任何建议/见解都会很棒。
编辑 所有客户端计算机都将从航空卡通过 VPN 进行远程连接。
I have already looked into ClickOnce and WindowsInstaller. Out of the two ClickOnce seems to have more of the features I am looking for. What do you feel are some of weaknesses plauging ClickOnce. When should and shouldn't you use this method?
I am wanting a method to automatically update software with 0 user interaction. I want it to be done in the background and on startup. Would this be better accomplished with custom logic and a custom version checking system?
Any advice/insight would be wonderful.
EDIT All client computers will be remotely connected over VPN from an aircard.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我已经使用 ClickOnce 3 年了,我对它非常满意。它使我能够利用本地应用程序的强大功能轻松部署 Web 应用程序。
我按照您提到的方式使用它,如果用户启动应用程序并且有新版本可用,它将自动更新,无需任何用户交互。
请记住,我的应用程序是在内部网内部部署的,其配置由我们控制。在外联网场景中,情况可能会完全不同。
I've been using ClickOnce for 3 years and I'm quite happy with it. It gives me the ease of deployment of web apps with the power of local applications.
I use it the way you mentioned, if a user starts the application and a new version is available, it is automatically updated without any user interaction.
Keep in mind that my app is deployed internally in an intranet which configuration is in our control. The picture might be totally different in an extranet scenario.
ClickOnce 听起来它非常适合您的特定场景。以下是一些注意事项:
ClickOnce 将应用程序文件埋藏在不起眼的用户目录中。这不一定是坏事,但您将很难找到实际的可执行文件和任何其他捆绑文件。
我遇到的一个特别问题是 a) 如果无法访问 ClickOnce 清单,则失败且不打开应用程序,或者 b) 只是让它运行而不通知任何人。如果有一个中间立场(允许应用程序运行,但以某种方式通知某人),那就太好了。
ClickOnce sounds like it would be ideal for your particular scenario. Here are a few caveats:
ClickOnce buries application files in obscure User directories. This is not necessarily bad, but you will have a hard time locating the actual executable and any other bundled files.
One issue in particular I've run into is the option to either a) Fail and not open the application if unable to access the ClickOnce manifest, or b) just let it run without notifying anyone. It would be nice if there was a middle ground (allow the application to run, but notify someone, somehow).