end2endzone / ShellAnything

ShellAnything is a C++ open-source software which allow one to easily customize and add new options to *Windows Explorer* context menu. Define specific actions when a user right-click on a file or a directory.
MIT License
180 stars 27 forks source link

Registry corruption while registering the extension #118

Closed end2endzone closed 1 year ago

end2endzone commented 1 year ago

Describe the bug An invalid registry key with invalid random characters is created while we register the shell extension.

To Reproduce Steps to reproduce the behavior:

  1. Register the shell extension
  2. Open Registry Editor
  3. Look at the invalid registry keys created under Computer\HKEY_CLASSES_ROOT.

Expected behavior The expected registry key should be ShellExtension.ShellAnything.1.

Screenshots N/A

Environment

Additional context N/A

end2endzone commented 1 year ago

The error is located here

end2endzone commented 1 year ago

Note that the invalid registry keys are not affecting Windows system stability. Every time you register the shell extension, it creates an invalid registry key which is polluting your registry. The worst case is that your registry looks ugly when you view it with Registry Editor.

You can clean up your system with the following steps:

  1. Open Registry Editor.
  2. Look for registry keys under Computer\HKEY_CLASSES_ROOT which are named with weird characters. For example: HKEY_CLASSES_ROOT\P°.
  3. Double check that weird registry keys have a Default value set to ShellAnything Class.
  4. Delete the invalid keys.