ClickOnce是否可以自动更新而无需询问用户? [英] Can ClickOnce update automatically without asking the user?

查看:103
本文介绍了ClickOnce是否可以自动更新而无需询问用户?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个客户端,希望为小型Windows系统任务栏应用程序简单安装。他们希望应用程序自动更新而无需询问用户。该应用程序很小,更新的大小应该最小(大多数业务逻辑和代码将在Web服务之后)。

I have a client that wants a simple install for a small windows system tray application. They want the application to update automatically without asking the user. The app is small and the update should be minimal in size (most of the business logic and code will be behind a web service).

我一直在关注Microsoft的ClickOnce技术因为它似乎是为这种事情而建造的。我的问题是,它可以在用户不知道的情况下在后台静默更新吗?如果不是,最好的方法是什么?还有另一种更合适的技术吗?

I have been eyeing Microsoft's ClickOnce technology since it seems built for such things. My question is can it update silently behind the scenes without the user knowing it did so? If not what's the best route to accomplish this? Is there another technology better suited?

我意识到在不告知用户的情况下进行更新是主观的,但是客户对此表示坚决。

I realize that updating without telling the user is subjective, but the client is adamant on this.

推荐答案

是的,将新版本部署到服务器后,ClickOnce应用程序会自动更新。有多种方法可以强制执行此操作:

Yes, ClickOnce applications update automatically when a new version is deployed onto the server. There are multiple ways to force this:

http://msdn.microsoft.com/en-us/library/s22azw1e.aspx

也请看看如何让您的自己的gui来通知用户有关更新的信息:

Also take a look how to have your own gui to inform users about updates:

http://msdn.microsoft.com/en-us/library/ms404263.aspx

这篇关于ClickOnce是否可以自动更新而无需询问用户?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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