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

后端 未结 2 1795
春和景丽
春和景丽 2021-02-05 17:19

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

相关标签:
2条回答
  • 2021-02-05 17:43

    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.

    0 讨论(0)
  • 2021-02-05 17:45

    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.

    0 讨论(0)
提交回复
热议问题