mirror of
https://github.com/l0ng-ai/tty7.git
synced 2026-09-21 16:02:20 +00:00
fix(installer): delete the pre-rename tty7.exe on upgrade
Builds before the tty7/tty7-app split installed the GUI as tty7.exe. Upgrading only adds tty7-app.exe, so the old binary stays on disk — and a taskbar pin, which Inno cannot rewrite the way it rewrites [Icons] shortcuts, still points at it. The user keeps launching the previous version from their pinned icon, against the same daemon endpoint as the new one. [InstallDelete] runs after PrepareToInstall has stopped the daemon and released the file lock, and before the new files land. A fresh install has nothing to remove.
This commit is contained in:
@@ -52,6 +52,15 @@ RestartApplications=no
|
||||
[Tasks]
|
||||
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
|
||||
|
||||
; Builds before the tty7/tty7-app split installed the GUI as tty7.exe. Upgrading
|
||||
; only *adds* tty7-app.exe, so the old binary would stay on disk — and a taskbar
|
||||
; pin (which Inno cannot rewrite, unlike the [Icons] shortcuts) still points at
|
||||
; it. The user would keep launching the previous version from their pinned icon,
|
||||
; against the same daemon endpoint as the new one. Delete it on upgrade; a fresh
|
||||
; install simply has nothing to remove.
|
||||
[InstallDelete]
|
||||
Type: files; Name: "{app}\tty7.exe"
|
||||
|
||||
[Files]
|
||||
Source: "{#StageDir}\tty7-app.exe"; DestDir: "{app}"; Flags: ignoreversion
|
||||
Source: "{#StageDir}\completions\*"; DestDir: "{app}\completions"; Flags: ignoreversion recursesubdirs
|
||||
|
||||
Reference in New Issue
Block a user