How to handle Application Update in ClickOnce
I am using VS 2008 with C#
My query is below. With Clickonce in VS 2008, i am creating a installer. It has an option that "Application should check for updates". Here is the screen shot
It shows the below Update Information Pop up When you have a new version setup placed in the same location from where the old setup was installed. Below is the screen shot.
Now, the issue is if you click the skip button and again clicking the sh开发者_JAVA技巧ortcut of the installed setup will not show the "Application Update" message and results in manually uninstalling the old setup.
Any suggestions ?
While I've never seen the "results in manually installing the old setup" part, the fact that the application update message is not shown is as per design :
Clicking on Skip launches the locally installed version of the application AND makes sure you are not prompted for that particular update for a week.
And further more:
To reitterate, clicking on Skip is equivalent to "Do not prompt me for this particular update for a week". The week time limit is non configurable. Note that you will no be "Prompted" for a week - however clickonce will still check for updates based on you maxAge or beforeApplicationStartup setting. If it detects a newer Update (You skipped V2, however now V3 is available) you will be prompted for the new update.
If you want to have custom behaviour for the application look into the System.Deployment namespace. You can force updates to download in the background and make the application restart itself so that it's always up to date if that's what you require.
精彩评论