Avatar of dominicwong

asked on 

Trouble with persisting user settings when install new version

Hi experts
I have some trouble in restoring persisted user config settings when installing a new version of my C# .NET application.

I have the following lines right at the beginning of my main program:
       // if(Properties.Settings.Default.UpgradeSettings). Temporary took out for testing
                Properties.Settings.Default.UpgradeSettings = false;

Open in new window

The old settings was kept in the file "user.config" at the location:

After installing the new version, I could see a new "user.config" at a new location:

But the code above didn't copy the old user settings, could someone point to me where I might have done wrong.

FYI, I am using C#, .NET 3.5, Installer.

Thanks in advance.
C#.NET ProgrammingInstallation

Avatar of undefined
Last Comment

8/22/2022 - Mon