Microsoft Communities

Welcome to WindowsClient.net | Sign in | Join

Here are some frequently asked questions about Windows Forms and their answers.

Windows Forms FAQs

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.Upgrade();
  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.



Page view counter