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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T11:11:38+00:00 2026-05-23T11:11:38+00:00

I have a C# app with its corresponding setup program. It reads startup data

  • 0

I have a C# app with its corresponding setup program. It reads startup data from the registry and stores information under the “Environment.SpecialFolder.ApplicationData”\myapp folder.

My question is: If I make various changes to the code that include new registry keys, where should I reflect this in the new version so when re-running the setup it:

  • Keeps current registry keys/values
  • Adds new Key/value to the registry
  • Leaves “Application Data” untouched

The candidates are:

  • Assembly Info
  • File Version

If there are others please let me know.

Thanks

  • 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-05-23T11:11:38+00:00Added an answer on May 23, 2026 at 11:11 am

    I think your application should be able to create the regestry keys. You don’t know if the user removes them manually to reset the settings to default. The Setup should only install and register components. (But the Uninstaller should ask the User if he want to remove the settings, or keep them.)

    Solution A)

    To avoid version-conflicts you can remember a extra version number for configuration. As an Example: Program Version 1.0 and 2.0 are using the configuration-set 1 while Program Version 3.0 uses a configuration-set 2, because there are obsolete/new settings. Just create a sub-key in your registry tree for every configuration-set.
    “Application Data” can also include a subfolder with seperated configuration sets.
    The major advantage is, that the user can downgrade without problems.
    New versions can import old values from older configuration as default values.

    Solution B)

    Never delete (or change the type or range) settings. Just add new keys. Old program versions don’t know them so they just ignoring it. This is very simple because there are no different configuration versions. But if your saving a lot of settings it can become complicated, because you cannot change the type of a setting. As an example you have to create a new key to change a setting from saving an integer to a long integer, because old versions don’t understand long integers and will crash.

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

Sidebar

Related Questions

I have a Grails app that loads its data from xml files and delivers
I have to test a web app and its API for UTF-8 strings. Webapp
I have been trying to write a small app with its own option windows.
I have an app that, while running, needs to poll its own memory usage.
Hi stackoverflow coders, I have an app (since the iPhone its really chic to
I have a service app that creates AppDomain's during the course of its use
I have a winform app that fills a lot of its dropdomn fields fram
I have a Windows Form app written in C#. Its job is to send
I have a largish complex app around 27k lines. Its essentially a rule drive
Suppose I have an ASP.NET website running with its corresponding web.config file, which contains

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.