notepad-plus-plus icon indicating copy to clipboard operation
notepad-plus-plus copied to clipboard

Feature request: Portable updater that saves settings

Open Monospace-V opened this issue 4 years ago • 3 comments

Description of the Enhancement

Ability to update a portable app without losing settings. This features two sub-enhancements:

  1. The updater should use the portable version of the app if the pre-existing version being used is portable.
  2. Installing a portable shouldn't change the settings. This itself can be done in two ways: a) Make the updater such that it saves the settings and doesn't replace them (assuming point 1 is followed through on) b) (assuming 1 is NOT followed through on,) Do not keep a settings file in the app folder by default. Let it get created the first time the app is run, and subsequently each time a settings file isn't detected (same with the shortcuts xml, and any other files that store user-saved settings). This way, if there is a preexisting file, it won't be replaced when one is extracting the N++ portable folder, and will instead be detected and used by the application. If required, the preexisting settings file can be updated with new options, but shouldn't be replaced by a clean vanilla settings file. (Otherwise, the old settings file is generally displaced by the one in the folder when we extract and replace the files.) (This is similar to what music creation application LMMS does. It creates the settings file whenever it's not detected, and reinstalling/updating generally saves your settings because the settings file is detected and therefore not replaced altogether, only edited.)

Related post in the community forums: https://community.notepad-plus-plus.org/topic/21813/enhancement-to-portable-app

Monospace-V avatar Sep 14 '21 04:09 Monospace-V

I think updating a portable version of an application is well done in the case of applications like Fan Control, Mozilla Thunderbird Portable / Mozilla Firefox Portable, AllDup, Foobar2000, CDBurnerXP, EiskaltDC++, Far Manager... None of them require you to delve into anything like that. They simply update the application with all user settings preserved, without dancing with a tambourine or risk of permanent loss of user data.

Korb avatar Sep 18 '24 06:09 Korb

If you don't mind to use the N++ PythonScript plugin: https://community.notepad-plus-plus.org/post/95098 https://community.notepad-plus-plus.org/topic/26049/config-files-need-updating-too

xomx avatar Sep 19 '24 14:09 xomx