Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9171167
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T16:07:34+00:00 2026-06-17T16:07:34+00:00

At first I had some userdefined settings stored in my app.config file, under appSettings.

  • 0

At first I had some userdefined settings stored in my app.config file, under appSettings.
These are properties the user can change during runtime.
The first problem I’ve got is when I deploy my application with ClickOnce it overwrites the app.config file and the user has lost his personal settings.

Then I moved the properties to the settings.settings file (= usersettings section in app.config) as I found on the internet that this section doesn’t get overwritten when deploying with ClickOnce. Nah, it does..
Settings.Settings properties are:

  • Build action = content
  • Copy to = Do not copy

So how can I accomplish that my user’s personal settings are not overwritten, either in the app.config file or the settings.settings file. Or is there another way and am I doing it wrong?

Thx!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T16:07:35+00:00Added an answer on June 17, 2026 at 4:07 pm

    This method copies the settings from the previous installation when deploying a new version of the application with ClickOnce.
    So any user defined settings that the user made will be copied and thus available after the update. I tested this and it works for me.

    public static void UpgradeUserSettings()
    {
      if (Settings.Default.upgradeRequired)
      {
        Settings.Default.Upgrade();
        Settings.Default.upgradeRequired = false;
        Settings.Default.Save();
      }
    } 
    

    ApplicationSettingsBase.Upgrade Method MSDN

    other question on StackOverflow

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We've had some good experiences building an app on Google App Engine, this first
I recently had my app certified (first time!) but not automatically published. The game
I have been trying to use code-first migrations, and had some limited success, but
First off, I'm not a codeigniter developer, though I've had some exposure to it
I'm working on an iOS app and have had some trouble with getting photos
( First time programming in PHP. Had some help. Need a bit more. )
I had some discussion related to the use of properties and instance variables at
My client had some developer write a small c++ command-line app to run on
here's my first! quick rundown: SCENARIO i'm creating an app in which you can
In my application i have two drop down boxes first box had origin second

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.