c# – ClickOnce应用程序跳过要求更新(如果选择了跳过,则会启动失败)








Forcing ClickOnce Updates

One of the big selling points of
ClickOnce is automatic updates. One of
the common questions I get with regard
to updates is “How can I force an
update on the user?”

There are three things to know with
respect to forcing updates on users:

1) If your application is an online
application, your users will always
run the latest version; online
applications get downloaded everytime
the application is accessed. Thus,
with online applications, you get
forced-updates by default.

2) If your application is an installed
application, you can force updates by
using the MinimumRequiredVersion
attribute. If you publish your
application using Visual Studio, you
can set this property from the Updates

3) The last thing to note is that if
your application is an installed
application (and you have not set the
MinimumRequiredVersion attribute)
ClickOnce will prompt the user with an
“Update Available” dialog ONLY if the
user launches the application from the
Start Menu shortcut. That is, if an
application is an installed
application and the user launches the
application from a URL, ClickOnce
forces the update.


ClickOnce: Bringing Ease and Reliability to Smart Client Deployment

转载注明原文:c# – ClickOnce应用程序跳过要求更新(如果选择了跳过,则会启动失败) - 代码日志