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 7985207
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T11:29:39+00:00 2026-06-04T11:29:39+00:00

Our product has several user-defined settings, which to date have been stored using the

  • 0

Our product has several user-defined settings, which to date have been stored using the project’s Settings variables, e.g.

public string MySetting {
  get { return Settings.Default.MySetting; }
  set { 
    Settings.Default.MySetting = value;
    Settings.Default.Save();
  }
}

That works fine – but it has the unfortunate characteristic that if you uninstall the app and reinstall a newer version (no direct upgrade path exists – don’t ask), all the settings are lost.

I can think of a few ways of achieving this, but they all seem a bit kludgy to me. What do you think is the neatest way of preserving user-defined application settings between uninstalling & reinstalling?

  • 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-04T11:29:40+00:00Added an answer on June 4, 2026 at 11:29 am

    On Windows, there are two ways I can think of that could accomplish this. The first is simply storing an XML/INI/JSON/whatever file in the user’s AppData folder. This would place the file out of the path for the application which means you could easily go get it again. You can find the AppData folder like so:

    Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData)
    

    The other place that would be good for this type of data is the registry. The .NET framework has pretty good support for doing this. There’s a lot of documentation out there on MSDN and other places to help you get started.

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

Sidebar

Related Questions

The need arose, in our product, to determine how long the current user has
Our company has a product which relies on local database to work (it allows
Our product team has requested custom cursors during drag/drop operations. They have provided me
I've got a problem - our flagship product has a text field in which
I have a web application that our product owner has stated must respond within
I'm working on a new feature for our product, a component of which has
We have a Flex 4.0 project in our product and we're trying to set
Our product has the requirement of exporting its native format (essentially an XML file)
Our client-server product has the protocol between them as XML over HTTP. Here, the
Our company has for many years had multiple domain names to protect our product

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.