The blog has moved to a new address. The blog is now located at


Friday, August 11, 2006

How do I know when to call Upgrade in a non-Clickonce app?

In non-Clickonce cases, there is no automatic upgrade - you have to call Upgrade yourself. Here is one idea for determining when to call Upgrade:
Have a boolean setting called CallUpgrade with a default value of true. When your app starts up, do the following:

if (Properties.Settings.Value.CallUpgrade)
Properties.Settings.Value.CallUpgrade = false;
This will ensure that Upgrade( ) is called only the first time the application runs after a new version is deployed.

Technorati : , , ,

No comments: