ClickOnce--help your users can upgrade the product after "skip" upgrade

Before the end user really have no way to solve this issue, they only can uninstall and re-install the product again, and the way developer can do is use a minimum required version to force the end user upgrade the application. This is the way we can think out, it is also the way we can find from internet.

But, today, I use the "Process Monitor" to watch which file or registry logged this flag, (base on my experience to think out there maybe such a flag to help ClickOnce work), but failed. So I try to find some clues form ClickOnce log, it has a record named "UpdateSkippedDeployment", that is our research target.

So I search it form my registry, finally I found this like registry:

=======This is the value which I have not used the skip upgrades.




=======This is the value after I clicked the skip button















So, after test, I found we just can restore the value to "00 00"(delete them, then type two 0, then "OK", you can see the value), which can enable the user check the updates and upgrade the application as usual.

But base on my research there's no public API or document support this action, this post is base on my several tests and experience, so please consider carefully before you decide to use this way to let your products end users update the product.

Have a good weekend!



posted @ 2012-01-27 18:22  Mike Dos Zhang  阅读(295)  评论(0编辑  收藏  举报