Winhance icon indicating copy to clipboard operation
Winhance copied to clipboard

[BUG] 'Repair Windows Image' context menu entry fails to remove after reverting

Open Veutexus opened this issue 7 months ago • 1 comments

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

  1. Enable the option Add 'Repair Windows Image' to Context Menu.
  2. Verify the option appears in the context menu by right-clicking in desktop.
  3. Toggle the setting off.
  4. 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)

Image Image

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.

Veutexus avatar Apr 22 '26 18:04 Veutexus

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

memory-agent avatar May 12 '26 10:05 memory-agent