ClickOnce update cancelled by user and it never asks for an update again

你。 提交于 2020-01-22 09:30:15

问题


I've a Windows Forms application, and it is deployed through ClickOnce. During launch of the application it checks for an update and prompts the user for the same. If the user choose not to install the update for that session, it doesn't ask anymore. Is this by design or am I missing any setting?

How do I make it prompt the user for an update next time he launches the application?


回答1:


When the user clicks "Skip", it means "Ask me again in 1 week". There is no way to adjust this time delay.

If you release a new version of the application in the meantime, the user will again be prompted to update.

You can also prevent the user from skipping the update in the first place by:

  • Checking for updates before the application starts, and
  • Making the update required by specifying a minimum version

In this case, the user must either update or they cannot run the program. See MSDN - Choosing a ClickOnce Update Strategy for details.




回答2:


Another alternative is to implement programmatic ClickOnce updates where you can define the behavior yourself. I suspect it's using a blunderbuss as a flyswatter in this case, but if you want to consider the option, one starting point is MSDN - Check for Application Updates Programmatically Using the ClickOnce Deployment API.



来源:https://stackoverflow.com/questions/5106000/clickonce-update-cancelled-by-user-and-it-never-asks-for-an-update-again

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!