有什么方法可以从两个不同的位置安装相同的 ClickOnce 应用程序吗?
我们构建应用程序一次,然后将其部署到多个站点。我可以从任何已部署的服务器安装它,但不能同时从多个服务器安装它。我知道这是 ClickOnce 的限制。有什么方法可以欺骗 ClickOnce 使其发挥作用吗?或者我可以对组件进行任何特定于站点的后处理?我怀疑后者,因为 ClickOnce 清单是在编译时签名的。
We build the application once, and then deploy it to multiple sites. I can install it from any of the deployed servers, but I cannot have it installed from multiple at the same time. I understand that this is a limitation of ClickOnce. Is there any way to trick ClickOnce into allowing this to work? Or any site-specific post-processing that I can do to the assemblies? I doubt the latter since the ClickOnce manifests were signed at compilation.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
有代码片段位于 http://geekswithblogs.net/thibbard/articles/70844.aspx 实现手动Clickonce部署和管理。您可以根据您的方便更改代码。手动更新使开发人员能够随意更新 Clickonce 部署。
There is code snippet available at http://geekswithblogs.net/thibbard/articles/70844.aspx which achieves manual Clickonce deployment and management. You can change the code as per your convenience. Manual updating gives control to developer to update Clickonce deployment at will.
不,你不能这样做。原因是安装 URL 是部署标识的一部分,并且包含在安全功能中。这可以确保有人不会劫持您的应用程序并让您的用户安装他们的更新而不是您的更新,并安装恶意软件。
No, you can't do this. The reason is that the installation URL is part of the identity of the deployment, and is included in the security features. This ensures that someone doesn't hijack your application and have your users install their updates instead of yours, and install malware.