Skip to content

fix: Stop deleting active uninstall key at startup - #2462

Merged
taratatach merged 3 commits into
masterfrom
bring-back-windows-uninstall-entry
Aug 26, 2026
Merged

fix: Stop deleting active uninstall key at startup#2462
taratatach merged 3 commits into
masterfrom
bring-back-windows-uninstall-entry

Conversation

@taratatach

Copy link
Copy Markdown
Member

Windows lists installed apps from the Uninstall registry subkeys. Every
launch, Twake Desktop removed what it believed was a stale uninstall
entry and disappeared from Windows' installed apps list.

Please make sure the following boxes are checked:

  • PR is not too big
  • it improves UX & DX in some way
  • it includes unit tests matching the implementation changes
  • it includes scenarios matching a new behaviour or has been manually tested
  • it includes relevant documentation

@taratatach taratatach self-assigned this Aug 25, 2026
@taratatach
taratatach force-pushed the bring-back-windows-uninstall-entry branch from 5c6f6d1 to 4379c67 Compare August 25, 2026 09:39
@taratatach
taratatach requested a review from shepilov August 25, 2026 13:43
  Windows lists installed apps from the Uninstall registry subkeys. Every
  launch, Twake Desktop removed what it believed was a stale key from the
  electron-builder v19 era: the brace-less uninstall key. When
  electron-builder was bumped from v19 to v21 (v3.16.0), the NSIS
  template started writing the key with braces, so that cleanup only
  removed the orphaned brace-less one. But v22 reverted the template
  back to the brace-less form, making the `OLD_UNINSTALL_KEY` in
  `core/utils/win_registry.js` identical to the active key written by
  every installer since. The app silently deleted its own uninstall
  entry on each launch and disappeared from Windows' installed apps
  list. Remove the startup cleanup entirely.
  Its only consumer, the startup registry cleanup in
  `core/utils/win_registry.js`, is gone, so the package and the
  `extraResources` entry copying `node_modules/regedit/vbs` into the
  packaged app go with it.
  The installer (and auto-updater, which runs the same installer with
  `/S --updated`) now removes the braced uninstall registry key left
  behind by the electron-builder v21 era installers, plus its
  brace-less per-machine variant from the v19 era, so a single Twake
  Desktop entry ever shows up in Windows' installed apps list. The key
  currently written by the installer (no braces, in `SHELL_CONTEXT`) is
  never touched.
@taratatach
taratatach force-pushed the bring-back-windows-uninstall-entry branch from 4379c67 to b4ff62e Compare August 26, 2026 12:53
@taratatach
taratatach merged commit 05a5602 into master Aug 26, 2026
14 of 17 checks passed
@taratatach
taratatach deleted the bring-back-windows-uninstall-entry branch August 26, 2026 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant