larspehrsson / ShellIconOverlayIdentifiers

ShellIconOverlayIdentifiers sort and prioritize your ShellIconOverlayIdentifiers
MIT License
37 stars 4 forks source link

x64 vs x86 #1

Open AndrWeisR opened 9 months ago

AndrWeisR commented 9 months ago

Note you get different results (different keys listed) if you build the app targeting x64 versus x86.

marco-eckstein commented 8 months ago

I did not build for both targets but used the release version. Nevertheless, maybe the following information is related?

According to a Microsoft moderator:

Also depending on if your system is a 64-bit system or not, you have to make the changes twice, once in both places:

  • HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\explor‌er\ShellIconOverlayIdentifiers
  • HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ShellIcon‌OverlayIdentifiers

ShellIconOverlayIdentifiers uses both of these keys, but apparently only accesses the Wow6432Node variant when deleting duplicates. See MainWindow.xaml.cs and search for rootKey2.

However, in my experience it seems that it is not necessary to make the changes in both keys - which is probably why ShellIconOverlayIdentifiers doesn't do it.

ghost commented 8 months ago

It's been a while since I created this app. It is reasonable to assume that I figured that I only needed to change the wow6432node to make it work. Whether it is the 100% correct approach or whether I should have changed both I can't say. Feel free to fork it and modify it to your liking.

marco-eckstein commented 8 months ago

It is the non-Wow6432Node variant that is properly written. The Wow6432Node variant is only written when deleting duplicates.

I'm also not sure whether both would need to be written because it works so far.