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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T14:28:39+00:00 2026-05-21T14:28:39+00:00

I am using NSIS to install my application and I am trying to prepare

  • 0

I am using NSIS to install my application and I am trying to prepare ahead of time for future updates. Normally with ClickOnce, I’d be able to call the Upgrade() method to update the user’s settings by accessing their settings from the previous installation. Unfortunately, when using the NullSoft Installer the new config file is packaged along with everything else and overwrites the existing one upon installation. What would be the most effective way to maintain a user’s settings when upgrading the application and merging them with a new config file?

My idea so far is to store a copy of the user’s config file in a separate location and then on startup, check to see if the application has been upgraded by comparing the assembly version with a setting in the config file that contains the previous assembly version. If it appears the application has been upgraded, it would then proceed to somehow merge the old config with the new one, but I am not sure what would be the safest/most effective way to do this.

  • 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-21T14:28:40+00:00Added an answer on May 21, 2026 at 2:28 pm

    My strategy for a safe upgrade would be to only add new elements and attributes from the new xml file to the original one. However, rather than copy the new xml file, I would have a list of xpaths and values in a CSV that the program would check for on startup and execute against its config file.

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

Sidebar

Related Questions

I'm trying to create a post install configuration page in my nsis script using
I´m using NSIS editor to make a setup for my application, but I don´t
I am using NSIS to deploy a .Net application. The installation/uninstallation process works fine,
I'm using NSIS package generator in CMake 2.8.1 to distribute a Qt application. Everything
I'm trying to build a Windows installer using Nullsoft Install System that requires installation
I've written an installer using NSIS and I need it to install some files
I am using NSIS to create install and uninstall wizards to my rather simple
I'm using NSIS to generate a Windows' installer for my application. I'd like a
I want to install Java using an NSIS script, but i have to know
My NSIS installer creates Start Menu links to run and uninstall my application. Using

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.