[BUG] 'Repair Windows Image' context menu entry fails to remove after reverting
Please confirm these before moving forward
- [x] I have searched for my issue and have not found a similiar in the Open or Closed issues.
- [x] I have tested that this issue has not been fixed in the latest (beta or stable) release.
- [x] I have checked the Discussions section for solutions.
- [x] This issue is about a bug (if it is not, please use the correct template).
Winhance Version
v26.04.21
Windows version, edition, and architecture
Windows 11 Pro 25H2 Build 26200.8246 x64
Describe your issue
After applying the "Add 'Repair Windows Image' to Context Menu" tweak in the Customizations tab, attempting to revert the setting to default does not successfully remove the entry from the Context menu. The option remains visible in the context menu, but non-functional.
Steps to reproduce the issue
- Enable the option Add 'Repair Windows Image' to Context Menu.
- Verify the option appears in the context menu by right-clicking in desktop.
- Toggle the setting off.
- Right-click in desktop again and the option still persist but without the icon.
Expected behavior
I expected Winhance to completely remove the registry keys associated with the "Repair Windows Image" context menu entry so that it no longer appears in the right-click menu.
Actual behavior
The "Repair Windows Image" option persists in the context menu, and it remains even after a system restart or Explorer restart. Specifically, the key below is not deleted during the revert process:
HKEY_CLASSES_ROOT\Directory\Background\shell\RepairWindowsImage
Screenshots or Logs (if applicable)
Winhance_Log_20260423_014023.log
Additional context
Manually deleting the key HKEY_CLASSES_ROOT\Directory\Background\shell\RepairWindowsImage fixes the issue. It looks like the command failed to delete it.
Hey @Veutexus,
Good catch — on revert we were clearing the individual values under HKCR\Directory\Background\shell\RepairWindowsImage but leaving the key itself behind, which is why the entry kept showing up (without its icon, since the values were gone). The fix targets the parent key for deletion so the whole subtree is removed on toggle-off.
This fix is in the development branch (930a85a) and will be available for testing in Release 26.
Thanks for reporting!
Drafted and approved by @memstechtips - Sent by Memory's Agent