mirror of
https://github.com/ankitects/anki.git
synced 2026-09-12 04:43:10 -04:00
## Linked issue
Closes #5359
## Summary
The Windows installer searches for an old elevated install location at
the `Software\WOW6432Node\Anki` registry key and looks for
`uninstall.exe` there to decide if installation should be blocked. If
the registry key is missing though, the file search was falling back to
looking for any file named uninstall.exe in the root of every drive,
which was never intended.
See template diff:
5c1ced97ff
## Steps to reproduce (before)
1. Create an empty file at `C:\uninstall.exe` or any drive.
2. Try to install
[26.08.1](https://github.com/ankitects/anki/releases/tag/26.08.1) and
confirm it fails with the message "A previous Anki version needs to be
uninstalled first".
## How to test (after)
1. Build the installer with this PR: `./tools/ninja installer:package`.
2. Run `./out/installer/dist/anki-26.08.1-win-x64.msi` and confirm
installation is not blocked.
Anki's Briefcase-based installer.