Icon doesn't appear at Context Menu

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
Gabarito
Posts: 77
Joined: Thu Apr 25, 2013 4:20 pm

Icon doesn't appear at Context Menu

Post by Gabarito »

void wrote: Mon Jul 03, 2023 6:17 am
Please consider creating a right click/context menu item for all items:
  • From the Start menu, search for:
    regedit
  • Click Registry Editor.
  • In the Registry Editor, navigate to:
    HKEY_CLASSES_ROOT\*
  • Create a new Key called:
    shell
  • navigate to:
    HKEY_CLASSES_ROOT\*\shell
  • Create a new Key called:
    Find in Everything...
  • In this key, create a new String Value, set the name to:
    Icon
  • Set the value to:
    C:\Program Files\Everything\Everything.exe,0
  • Create a new Key called:
    command
  • In this key, set the (Default) value to:
    "C:\Program Files\Everything\Everything.exe" -parentpath "%1" -select "%1"
  • Now you can right click your file and click Find in Everything...

I have a context menu for Everything and it works fine.
But I can't display an icon image to it. Nothing appears:

Menu de Contexto - Everything sem ícone 1.png
Menu de Contexto - Everything sem ícone 1.png (10.23 KiB) Viewed 1648 times

No matters I did, that icon nevers appears where it supposes to do.

I create "Icon" string key, "Icon" expanded string key, "IconPath" string key, "IconPath" expanded string key, but none of these works.
I have no icon before "Search Everything 1.5a..."

My keys are stored at:
HKEY_CLASSES_ROOT\Folder\shell\Everything

Code: Select all

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Folder\shell\Everything]
@="EveryT"
"Icon"="C:\\Windows\\System32\\shell32.dll,1"
"IconPath"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,\
  74,00,25,00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,69,\
  00,6d,00,61,00,67,00,65,00,72,00,65,00,73,00,2e,00,64,00,6c,00,6c,00,2c,00,\
  31,00,30,00,00,00

[HKEY_CLASSES_ROOT\Folder\shell\Everything\command]
@="\"F:\\Programas\\Everything 1.5 Alpha\\Everything64.exe\" \"%1\""
Menu de Contexto - Everything sem ícone 2.png
Menu de Contexto - Everything sem ícone 2.png (42.04 KiB) Viewed 1648 times

How to solve that?

P.S.
Hah! Windows 7 SP1 here.


Thanks
Gabarito
Posts: 77
Joined: Thu Apr 25, 2013 4:20 pm

Re: Icon doesn't appear at Context Menu

Post by Gabarito »

Gabarito wrote: Tue Apr 09, 2024 2:57 am How to solve that?

P.S.
Hah! Windows 7 SP1 here.


Thanks

Is there a requirements for the icon resolution?
Searching around, I read that it should be 32x32 pixels.

I use Resource Hacker to inspect .DLL files.

I tried it too, without success...
:(
void
Developer
Posts: 16748
Joined: Fri Oct 16, 2009 11:31 pm

Re: Icon doesn't appear at Context Menu

Post by void »

I'm seeing the expected results with the Icon set to C:\Windows\System32\shell32.dll,1 on Windows 7 in Windows Explorer.

Do you see the icon in the context menu when right clicking a folder in Windows Explorer?

Maybe it's the custom context menu handler you are using?



The Everything icon contains the following sizes:
16x16
24x24
32x32
48x48
256x256
Gabarito
Posts: 77
Joined: Thu Apr 25, 2013 4:20 pm

Re: Icon doesn't appear at Context Menu

Post by Gabarito »

Thanks for the answer.

void wrote: Tue Apr 09, 2024 9:12 am I'm seeing the expected results with the Icon set to C:\Windows\System32\shell32.dll,1 on Windows 7 in Windows Explorer.

Do you see the icon in the context menu when right clicking a folder in Windows Explorer?
I don't see any icon I put, even if I change to a single icon file, like "C:\favicon.ico".

The only icons I see are these:

Menu de Contexto - Everything sem ícone 3.png
Menu de Contexto - Everything sem ícone 3.png (13.65 KiB) Viewed 1629 times

void wrote: Tue Apr 09, 2024 9:12 am
Maybe it's the custom context menu handler you are using?
I had seen some keys names like this, "ContextMenuHandlers", but I don't know how to tweak them.
I also see some CLSID keys, like this, "{B41DB860-64E4-11D2-9906-E49FADC173CA}", when refers to icon, but I can't understand them also.

void wrote: Tue Apr 09, 2024 9:12 am
The Everything icon contains the following sizes:
16x16
24x24
32x32
48x48
256x256
I can put any size, as long as it works.
Gabarito
Posts: 77
Joined: Thu Apr 25, 2013 4:20 pm

Re: Icon doesn't appear at Context Menu

Post by Gabarito »

I can see a default icon key below every key I tried to insert an icon.
Is there a chance that this is canceling, overwriting or preventing my custom icon?

Menu de Contexto - Everything sem ícone 4.png
Menu de Contexto - Everything sem ícone 4.png (25.25 KiB) Viewed 1623 times

But that "%SystemRoot%\System32\shell32.dll,3" doesn't appear also.
void
Developer
Posts: 16748
Joined: Fri Oct 16, 2009 11:31 pm

Re: Icon doesn't appear at Context Menu

Post by void »

Is there a chance that this is canceling or avoiding my custom icon?
No, this is normal.


I don't see any icon I put, even if I change to a single icon file, like "C:\favicon.ico".
Please try removing the IconPath value.
This value is not needed.
(I didn't have any issues when adding IconPath)



Please try ShExView to manage your shell context menu extensions.
Shell extensions can cause the icon to be missing.
Gabarito
Posts: 77
Joined: Thu Apr 25, 2013 4:20 pm

Re: Icon doesn't appear at Context Menu

Post by Gabarito »

void wrote: Tue Apr 09, 2024 9:58 am Please try removing the IconPath value.
This value is not needed.
(I didn't have any issues when adding IconPath)
I removed all IconPath strings from other keys I put.

void wrote: Tue Apr 09, 2024 9:58 am Please try ShExView to manage your shell context menu extensions.
Shell extensions can cause the icon to be missing.
Good tool, like many others from NirSoft.
I'll try to use it and will report back.
Gabarito
Posts: 77
Joined: Thu Apr 25, 2013 4:20 pm

Re: Icon doesn't appear at Context Menu

Post by Gabarito »

Gabarito wrote: Tue Apr 09, 2024 10:09 am
Good tool, like many others from NirSoft.
I'll try to use it and will report back.

All my Shell Extensions displayed by NirSoft tool has a CLSID value.
And the strings that I inserted in Registry for icon image don't appear in the list.
I searched "Context Menu" type.

How to fix some wrong ShellExt?
How could it help to show icon image in the Context Menu?

I don't know how to use it.
:(
Post Reply