dotnetmonitor.com

 
Index
Previous
Next

 

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.

What is the difference between application scoped and user scoped settings?
Why cant I change application scoped settings at runtime?
Where is the user.config file located in a non-Clickonce app?
Why is the user.config path so obscure?
Why is there a version number in the user.config path?
How can I get the user.config file path programmatically in a non-Clickonce app?