R6.11 round 1 fix: the installer removes only what it installed

Reinstalling deleted files Ely never installed, and a busy file left a
half-removed install. The installer now writes the top-level names it
installs (.ely-files, from packaging/windows/files.sh); upgrades and
uninstall remove only those, and releases before the list only in the
folder the registry names. It checks that every listed file can be
written, moves them all into .ely-old, and on any refusal puts them
back and exits 2. A file that cannot be written fails the install,
which removes what it created and restores the old release.
tests/scripts/windows-installer.sh covers each case.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ZacharyZhang-NYandClaude Opus 5.5 committed 2026-10-15 15:59:50 -04:00
1 parent 5dafa432f6
commit 23735aee3c
6 files changed
+365 -24

No files matched your search

+1 -1
View File
@@ -268,5 +268,5 @@
- [x] R6.7 ElyMark 可视与预览保留单个换行(用户报:代码块后的“你好↵测试”离开输入框后变成“你好 测试”):照 Typora 默认(编辑时保留单个换行,导出与打印照 GFM 读作空格);组件库的读法分屏上与输出两种
- [x] R6.8 源码模式插入点落在字中(用户报:“测”后的插入点画在“测”中间):代码编辑器按“列 × m 的宽”定位,中日韩字宽约两格;插入点、选区、按下、输入法框改按排版后的实际位置(组件库 `CodeEditor`)
- [x] R6.9 ElyMark 三、四级标题不显眼(用户报):各级字号随正文按 Typora 的倍数(2.25、1.75、1.5、1.25、1、1),一律加粗,六级为次要色(组件库渲染)
- [ ] R6.11 Windows 升级后旧文件仍在(R6.10 本机重装查出):安装程序只覆盖不删除,旧版 ElyMark 的 `git` 与 CEF 文件留在安装目录;装前照卸载的同一清单删去,只在目录里已有本应用的程序时
- [ ] R6.11 Windows 升级后旧文件仍在(R6.10 本机重装查出):安装程序只覆盖不删除,旧版 ElyMark 的 `git` 与 CEF 文件留在安装目录;安装程序记下所装的文件,升级与卸载只移去这些;文件被占用即什么也不改,失败时放回旧版
- [ ] R6.10 重发 0.1.5(用户定:仍为 0.1.5):删去 v0.1.5 的全部文件,标签移到修复的提交,三端全部包重建并上传,本机重装