Skip to content

Updating through winget is not smooth #834

@stevenlele

Description

@stevenlele

notepad4/doc/release.md

Lines 22 to 23 in 77c708f

| i18n | all above languages | winget | `winget install -e "Notepad4"` |
| 한국어 | https://teus.me/Notepad4 | winget | `winget install zufuliu.notepad4` |

When updating through winget, it will check if the SHA256 of all files match the installation. Typically, the INI file is modified, so it will stop updating. Adding --force will let winget remove the configuration file and update. So basically the user need to copy the INI files out of the installation folder, force update, then copy the INI files back. The same thing happens upon uninstallation.

To make the update smooth, you need to move the default configuration directory to %APPDATA%/AppName. This might be a breaking change, but you could, for example, automatically move existing old configuration files to that folder upon opening Notepad4 (if detected). It will also mean that you need to hardcode the default INI files into an executable and extract them if they are absent.

You can close this issue if you don't bother implementing it.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions