Files
meanaverage 8dc02ad990 fix(windows): clean up owned shell registrations on uninstall (#11885)
* fix(windows): remove owned shell registrations on uninstall

* test(windows): preserve registry backups on fixture failures
2026-11-24 00:24:32 +01:00
..

This fixture runs the production customUnInstall macro in a real NSIS uninstaller without packaging all of Tabby.

Compile from this directory:

makensis uninstallRegistration.nsi

Run in a disposable Windows test account:

powershell.exe -NoProfile -ExecutionPolicy Bypass -File .\uninstallRegistration.ps1 -Fixture .\uninstallRegistration.exe

The runner requires all registry exports to succeed before changing registrations and restores them in finally. If restoration fails, it retains the backup directory and reports its path. It tests quoted and unquoted commands with spaces in the installation path, missing keys, another installation's registrations, customized commands, and the upgrade flag. It also checks that the macro preserves $R0.