[PR #1062] [MERGED] Clarify Windows installer upgrade data paths #4907

Closed
opened 2026-10-22 04:11:37 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/1062
Author: @cha1latte
Created: 5/21/2026
Status: ✅ Merged
Merged: 5/23/2026
Merged by: @SpicyMarinara

Base: staging ← Head: feature/installer-upgrade-ux


📝 Commits (6)

  • 7119c30 Clarify Windows installer upgrade data paths
  • 4657763 Align batch installer default path
  • 9d7d9f5 Polish installer upgrade warning text
  • 1b4c5f7 Merge branch 'staging' into feature/installer-upgrade-ux
  • d56f799 Address installer upgrade review feedback
  • 63965c5 Merge branch 'staging' into feature/installer-upgrade-ux

📊 Changes

2 files changed (+101 additions, -14 deletions)

View changed files

📝 win/installer/install.bat (+39 -7)
📝 win/installer/installer.nsi (+62 -7)

📄 Description

Linked issue

No linked issue; this came from live upgrade support. An issue should be opened before submission if the team wants this tracked separately.

Why this change

  • This addresses one Windows upgrade UX issue with three symptoms: legacy users can be steered into a different install folder than their existing data, the backup warning does not clearly identify which folder/files preserve chats and characters, and the installer's size estimate should reflect the real app/dependency footprint.

What changed

  • Restored the GUI installer default path to $LOCALAPPDATA\Marinara-Engine.
  • Added startup path selection that prefers existing data-bearing installs across $LOCALAPPDATA\Marinara-Engine, legacy $LOCALAPPDATA\MarinaraEngine, and %USERPROFILE%\Marinara-Engine.
  • Updated batch installer detection so random .git or start.bat folders do not trigger Marinara reinstall warnings.
  • Updated reinstall warnings to tell users to copy packages\server\data or legacy root data to a backup location outside the install folder.
  • Clarified that legacy marinara-engine.db files should be copied with marinara-engine.db-wal and marinara-engine.db-shm when present.
  • Simplified dependency install copy and removed chat/character-count reassurance text.
  • Adjusted the installer free-space recommendation/reservation to 2.5 GB based on a measured 2.16 GiB local built checkout.

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Manual verification notes

  • Codex ran pnpm check successfully at PR head d56f799d.
  • Codex ran pnpm version:check successfully because win/installer/installer.nsi is version-bearing.
  • Codex ran git diff --check successfully. It only reported CRLF normalization warnings for the installer files.
  • Codex ran a targeted claim-matrix static check covering:
    • batch default %LOCALAPPDATA%\Marinara-Engine
    • legacy %LOCALAPPDATA%\MarinaraEngine
    • legacy %USERPROFILE%\Marinara-Engine
    • packages\server\data
    • root data
    • removal of random .git / start.bat false-positive reinstall warnings
    • actionable backup wording for marinara-engine.db, marinara-engine.db-wal, and marinara-engine.db-shm
    • removal of dependency-folder reassurance copy
  • Codex ran a temporary cmd.exe batch harness that verified install path selection prefers the new data-bearing default, then old non-hyphen LocalAppData, then old profile installs, and does not treat a random .git / start.bat folder as an existing Marinara install.
  • Codex measured the local built checkout at about 2.16 GiB and adjusted the installer recommendation/reservation to 2.5 GB.
  • GitHub checks passed for head d56f799d.

Manual follow-up still needed: compile the NSIS installer with makensis and smoke the generated installer directory page / reinstall warning, because makensis is not available in this Codex environment.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Version/release files updated (only if this PR includes a version bump)

Installer-only UX copy/path behavior change; no release metadata or docs files changed.

UI evidence (if applicable)

N/A; installer script text/path behavior only.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/1062 **Author:** [@cha1latte](https://github.com/cha1latte) **Created:** 5/21/2026 **Status:** ✅ Merged **Merged:** 5/23/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `feature/installer-upgrade-ux` --- ### 📝 Commits (6) - [`7119c30`](https://github.com/Pasta-Devs/Marinara-Engine/commit/7119c303a5ecf5095219d156dc4207d64ef72d97) Clarify Windows installer upgrade data paths - [`4657763`](https://github.com/Pasta-Devs/Marinara-Engine/commit/465776315243477996609f9f98eefd27ba7e7c1c) Align batch installer default path - [`9d7d9f5`](https://github.com/Pasta-Devs/Marinara-Engine/commit/9d7d9f539b0c37e825139e41afa6768aec2b48b3) Polish installer upgrade warning text - [`1b4c5f7`](https://github.com/Pasta-Devs/Marinara-Engine/commit/1b4c5f764d0124aa36fdcbee2a4ff0c517da53e5) Merge branch 'staging' into feature/installer-upgrade-ux - [`d56f799`](https://github.com/Pasta-Devs/Marinara-Engine/commit/d56f799dbc0b5a3d26323e89fe18a212b1090e40) Address installer upgrade review feedback - [`63965c5`](https://github.com/Pasta-Devs/Marinara-Engine/commit/63965c57a9700402c3832bea0d4d85e9f17b95d5) Merge branch 'staging' into feature/installer-upgrade-ux ### 📊 Changes **2 files changed** (+101 additions, -14 deletions) <details> <summary>View changed files</summary> 📝 `win/installer/install.bat` (+39 -7) 📝 `win/installer/installer.nsi` (+62 -7) </details> ### 📄 Description ## Linked issue No linked issue; this came from live upgrade support. An issue should be opened before submission if the team wants this tracked separately. ## Why this change - This addresses one Windows upgrade UX issue with three symptoms: legacy users can be steered into a different install folder than their existing data, the backup warning does not clearly identify which folder/files preserve chats and characters, and the installer's size estimate should reflect the real app/dependency footprint. ## What changed - Restored the GUI installer default path to `$LOCALAPPDATA\Marinara-Engine`. - Added startup path selection that prefers existing data-bearing installs across `$LOCALAPPDATA\Marinara-Engine`, legacy `$LOCALAPPDATA\MarinaraEngine`, and `%USERPROFILE%\Marinara-Engine`. - Updated batch installer detection so random `.git` or `start.bat` folders do not trigger Marinara reinstall warnings. - Updated reinstall warnings to tell users to copy `packages\server\data` or legacy root `data` to a backup location outside the install folder. - Clarified that legacy `marinara-engine.db` files should be copied with `marinara-engine.db-wal` and `marinara-engine.db-shm` when present. - Simplified dependency install copy and removed chat/character-count reassurance text. - Adjusted the installer free-space recommendation/reservation to 2.5 GB based on a measured 2.16 GiB local built checkout. ## Validation - [ ] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [ ] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [ ] Above manual verification completed (describe below) - [ ] Read and followed `CONTRIBUTING.md` ### Manual verification notes - Codex ran `pnpm check` successfully at PR head `d56f799d`. - Codex ran `pnpm version:check` successfully because `win/installer/installer.nsi` is version-bearing. - Codex ran `git diff --check` successfully. It only reported CRLF normalization warnings for the installer files. - Codex ran a targeted claim-matrix static check covering: - batch default `%LOCALAPPDATA%\Marinara-Engine` - legacy `%LOCALAPPDATA%\MarinaraEngine` - legacy `%USERPROFILE%\Marinara-Engine` - `packages\server\data` - root `data` - removal of random `.git` / `start.bat` false-positive reinstall warnings - actionable backup wording for `marinara-engine.db`, `marinara-engine.db-wal`, and `marinara-engine.db-shm` - removal of dependency-folder reassurance copy - Codex ran a temporary `cmd.exe` batch harness that verified install path selection prefers the new data-bearing default, then old non-hyphen LocalAppData, then old profile installs, and does not treat a random `.git` / `start.bat` folder as an existing Marinara install. - Codex measured the local built checkout at about 2.16 GiB and adjusted the installer recommendation/reservation to 2.5 GB. - GitHub checks passed for head `d56f799d`. Manual follow-up still needed: compile the NSIS installer with `makensis` and smoke the generated installer directory page / reinstall warning, because `makensis` is not available in this Codex environment. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Version/release files updated (only if this PR includes a version bump) Installer-only UX copy/path behavior change; no release metadata or docs files changed. ## UI evidence (if applicable) N/A; installer script text/path behavior only. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:11:37 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#4907
No description provided.