PDA

View Full Version : add icons



chopper13
November 3rd, 2011, 05:35 PM
Is it possable to add EXTRA icons to shell32.dll file????for use in right click menu!:cheeky:

Mr GRiM
November 3rd, 2011, 06:19 PM
Not in the shell32.dll but you can make a folder and add the icons to it and have them used in the context menu, I have 4 icons that I use in mine that are in a folder and the registry entry looks like this.


Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\Background\shell]
@="none"

[HKEY_CLASSES_ROOT\Directory\Background\shell\cmd]
@="@shell32.dll,-8506"
"Extended"=""
"NoWorkingDirectory"=""

[HKEY_CLASSES_ROOT\Directory\Background\shell\cmd\command]
@="cmd.exe /s /k pushd \"%V\""

[HKEY_CLASSES_ROOT\Directory\Background\shell\Control Panel]
"Icon"=hex(2):43,00,3a,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,77,00,73,00,5c,\
00,43,00,6f,00,6e,00,74,00,65,00,78,00,74,00,20,00,4d,00,65,00,6e,00,75,00,\
20,00,49,00,63,00,6f,00,6e,00,73,00,5c,00,43,00,6f,00,6e,00,74,00,72,00,6f,\
00,6c,00,20,00,50,00,61,00,6e,00,65,00,6c,00,2e,00,69,00,63,00,6f,00,00,00

[HKEY_CLASSES_ROOT\Directory\Background\shell\Control Panel\command]
@=hex(2):72,00,75,00,6e,00,64,00,6c,00,6c,00,33,00,32,00,2e,00,65,00,78,00,65,\
00,20,00,73,00,68,00,65,00,6c,00,6c,00,33,00,32,00,2e,00,64,00,6c,00,6c,00,\
2c,00,43,00,6f,00,6e,00,74,00,72,00,6f,00,6c,00,5f,00,52,00,75,00,6e,00,44,\
00,4c,00,4c,00,00,00

[HKEY_CLASSES_ROOT\Directory\Background\shell\DevMgr]
@=hex(2):40,00,25,00,77,00,69,00,6e,00,64,00,69,00,72,00,25,00,5c,00,73,00,79,\
00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,64,00,65,00,76,00,6d,00,67,00,\
72,00,2e,00,64,00,6c,00,6c,00,2c,00,2d,00,34,00,00,00
"SuppressionPolicy"=dword:4000003c
"Icon"=hex(2):43,00,3a,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,77,00,73,00,5c,\
00,43,00,6f,00,6e,00,74,00,65,00,78,00,74,00,20,00,4d,00,65,00,6e,00,75,00,\
20,00,49,00,63,00,6f,00,6e,00,73,00,5c,00,44,00,65,00,76,00,69,00,63,00,65,\
00,20,00,4d,00,61,00,6e,00,61,00,67,00,65,00,72,00,2e,00,69,00,63,00,6f,00,\
00,00

[HKEY_CLASSES_ROOT\Directory\Background\shell\DevMgr\command]
@=hex(2):25,00,77,00,69,00,6e,00,64,00,69,00,72,00,25,00,5c,00,73,00,79,00,73,\
00,74,00,65,00,6d,00,33,00,32,00,5c,00,6d,00,6d,00,63,00,2e,00,65,00,78,00,\
65,00,20,00,2f,00,73,00,20,00,25,00,77,00,69,00,6e,00,64,00,69,00,72,00,25,\
00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,64,00,65,00,\
76,00,6d,00,67,00,6d,00,74,00,2e,00,6d,00,73,00,63,00,00,00

[HKEY_CLASSES_ROOT\Directory\Background\shell\Registry Editor]
"Icon"=hex(2):43,00,3a,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,77,00,73,00,5c,\
00,43,00,6f,00,6e,00,74,00,65,00,78,00,74,00,20,00,4d,00,65,00,6e,00,75,00,\
20,00,49,00,63,00,6f,00,6e,00,73,00,5c,00,52,00,65,00,67,00,65,00,64,00,69,\
00,74,00,5f,00,33,00,44,00,2e,00,69,00,63,00,6f,00,00,00

[HKEY_CLASSES_ROOT\Directory\Background\shell\Registry Editor\command]
@="regedit"

[HKEY_CLASSES_ROOT\Directory\Background\shell\Software]
"Icon"=hex(2):43,00,3a,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,77,00,73,00,5c,\
00,43,00,6f,00,6e,00,74,00,65,00,78,00,74,00,20,00,4d,00,65,00,6e,00,75,00,\
20,00,49,00,63,00,6f,00,6e,00,73,00,5c,00,53,00,6f,00,66,00,74,00,77,00,61,\
00,72,00,65,00,2e,00,69,00,63,00,6f,00,00,00

[HKEY_CLASSES_ROOT\Directory\Background\shell\Software\command]
@=hex(2):63,00,6f,00,6e,00,74,00,72,00,6f,00,6c,00,20,00,61,00,70,00,70,00,77,\
00,69,00,7a,00,2e,00,63,00,70,00,6c,00,00,00



I just put my icons I wanted to use in the windows folder, hope this helps, included the icons and reg entry as well.

chopper13
November 3rd, 2011, 07:45 PM
Not in the shell32.dll but you can make a folder and add the icons to it and have them used in the context menu, I have 4 icons that I use in mine that are in a folder and the registry entry looks like this.


Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\Background\shell]
@="none"

[HKEY_CLASSES_ROOT\Directory\Background\shell\cmd]
@="@shell32.dll,-8506"
"Extended"=""
"NoWorkingDirectory"=""

[HKEY_CLASSES_ROOT\Directory\Background\shell\cmd\command]
@="cmd.exe /s /k pushd \"%V\""

[HKEY_CLASSES_ROOT\Directory\Background\shell\Control Panel]
"Icon"=hex(2):43,00,3a,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,77,00,73,00,5c,\
00,43,00,6f,00,6e,00,74,00,65,00,78,00,74,00,20,00,4d,00,65,00,6e,00,75,00,\
20,00,49,00,63,00,6f,00,6e,00,73,00,5c,00,43,00,6f,00,6e,00,74,00,72,00,6f,\
00,6c,00,20,00,50,00,61,00,6e,00,65,00,6c,00,2e,00,69,00,63,00,6f,00,00,00

[HKEY_CLASSES_ROOT\Directory\Background\shell\Control Panel\command]
@=hex(2):72,00,75,00,6e,00,64,00,6c,00,6c,00,33,00,32,00,2e,00,65,00,78,00,65,\
00,20,00,73,00,68,00,65,00,6c,00,6c,00,33,00,32,00,2e,00,64,00,6c,00,6c,00,\
2c,00,43,00,6f,00,6e,00,74,00,72,00,6f,00,6c,00,5f,00,52,00,75,00,6e,00,44,\
00,4c,00,4c,00,00,00

[HKEY_CLASSES_ROOT\Directory\Background\shell\DevMgr]
@=hex(2):40,00,25,00,77,00,69,00,6e,00,64,00,69,00,72,00,25,00,5c,00,73,00,79,\
00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,64,00,65,00,76,00,6d,00,67,00,\
72,00,2e,00,64,00,6c,00,6c,00,2c,00,2d,00,34,00,00,00
"SuppressionPolicy"=dword:4000003c
"Icon"=hex(2):43,00,3a,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,77,00,73,00,5c,\
00,43,00,6f,00,6e,00,74,00,65,00,78,00,74,00,20,00,4d,00,65,00,6e,00,75,00,\
20,00,49,00,63,00,6f,00,6e,00,73,00,5c,00,44,00,65,00,76,00,69,00,63,00,65,\
00,20,00,4d,00,61,00,6e,00,61,00,67,00,65,00,72,00,2e,00,69,00,63,00,6f,00,\
00,00

[HKEY_CLASSES_ROOT\Directory\Background\shell\DevMgr\command]
@=hex(2):25,00,77,00,69,00,6e,00,64,00,69,00,72,00,25,00,5c,00,73,00,79,00,73,\
00,74,00,65,00,6d,00,33,00,32,00,5c,00,6d,00,6d,00,63,00,2e,00,65,00,78,00,\
65,00,20,00,2f,00,73,00,20,00,25,00,77,00,69,00,6e,00,64,00,69,00,72,00,25,\
00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,64,00,65,00,\
76,00,6d,00,67,00,6d,00,74,00,2e,00,6d,00,73,00,63,00,00,00

[HKEY_CLASSES_ROOT\Directory\Background\shell\Registry Editor]
"Icon"=hex(2):43,00,3a,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,77,00,73,00,5c,\
00,43,00,6f,00,6e,00,74,00,65,00,78,00,74,00,20,00,4d,00,65,00,6e,00,75,00,\
20,00,49,00,63,00,6f,00,6e,00,73,00,5c,00,52,00,65,00,67,00,65,00,64,00,69,\
00,74,00,5f,00,33,00,44,00,2e,00,69,00,63,00,6f,00,00,00

[HKEY_CLASSES_ROOT\Directory\Background\shell\Registry Editor\command]
@="regedit"

[HKEY_CLASSES_ROOT\Directory\Background\shell\Software]
"Icon"=hex(2):43,00,3a,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,77,00,73,00,5c,\
00,43,00,6f,00,6e,00,74,00,65,00,78,00,74,00,20,00,4d,00,65,00,6e,00,75,00,\
20,00,49,00,63,00,6f,00,6e,00,73,00,5c,00,53,00,6f,00,66,00,74,00,77,00,61,\
00,72,00,65,00,2e,00,69,00,63,00,6f,00,00,00

[HKEY_CLASSES_ROOT\Directory\Background\shell\Software\command]
@=hex(2):63,00,6f,00,6e,00,74,00,72,00,6f,00,6c,00,20,00,61,00,70,00,70,00,77,\
00,69,00,7a,00,2e,00,63,00,70,00,6c,00,00,00



I just put my icons I wanted to use in the windows folder, hope this helps, included the icons and reg entry as well.

You ARE the man,Thanks Mate:Smile::happy:

razorsedge
November 3rd, 2011, 09:02 PM
Hi Chopper :)

There is also one other way you can do this I do this for most of the registy tweaks I make to add things to my right click menu.

You make the icon you would like to use for the right click menu edit and drop it in your system 32 folder naming it whatever you would like.

then in the registry tweak you just add a line of code to use the icon in the right click as I will show below here

Windows Registry Editor Version 5.00


[HKEY_CLASSES_ROOT\*\shell\runas]
@="Take Ownership"
"NoWorkingDirectory"=""
"icon"="%WINDIR%\\\\system32\\\\Task.ico"

[HKEY_CLASSES_ROOT\*\shell\runas\command]
@="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"
"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"

[HKEY_CLASSES_ROOT\Directory\shell\runas]
@="Take Ownership"
"NoWorkingDirectory"=""
"icon"="%WINDIR%\\\\system32\\\\Task.ico"

[HKEY_CLASSES_ROOT\Directory\shell\runas\command]
@="cmd.exe /c takeown /f \"%1\" /r /d y && icacls \"%1\" /grant administrators:F /t"
"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" /r /d y && icacls \"%1\" /grant administrators:F /t"

I have highlighted the code line in red now where it says Task.ico you would just edit that accordingly to whatever you named the icon that you placed in the system32 folder :)

chopper13
November 4th, 2011, 02:05 AM
Hi Chopper :)

There is also one other way you can do this I do this for most of the registy tweaks I make to add things to my right click menu.

You make the icon you would like to use for the right click menu edit and drop it in your system 32 folder naming it whatever you would like.

then in the registry tweak you just add a line of code to use the icon in the right click as I will show below here

Windows Registry Editor Version 5.00


[HKEY_CLASSES_ROOT\*\shell\runas]
@="Take Ownership"
"NoWorkingDirectory"=""
"icon"="%WINDIR%\\\\system32\\\\Task.ico"

[HKEY_CLASSES_ROOT\*\shell\runas\command]
@="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"
"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"

[HKEY_CLASSES_ROOT\Directory\shell\runas]
@="Take Ownership"
"NoWorkingDirectory"=""
"icon"="%WINDIR%\\\\system32\\\\Task.ico"

[HKEY_CLASSES_ROOT\Directory\shell\runas\command]
@="cmd.exe /c takeown /f \"%1\" /r /d y && icacls \"%1\" /grant administrators:F /t"
"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" /r /d y && icacls \"%1\" /grant administrators:F /t"

I have highlighted the code line in red now where it says Task.ico you would just edit that accordingly to whatever you named the icon that you placed in the system32 folder :)
well here is a recap of what this mate has been through today:tried mark's way and no go

found a guid on uo revolution to use shell32.dll,but this made my shutdown button in the start menu-non functional
so i reverted back to normal but kept the entry.no problem.

went and tried razorsedge way and yet again-did not work-so i thought to my self and went with the second mod.I use ISHUT so the
buttons in start menu are not used anyways...this is until i can find a way to fix it lol.this mate is very persistent:laughing:!

razorsedge
November 4th, 2011, 02:44 AM
Hi chopper lol

what exactly is he trying to do can you tell me cause I can make the registry tweaks for him and add in the icon bit line if he has icons he wants to use just send those to me so I can do the tweaks right for him with the right names, the way I do it is simple this way with the icons in the system32 folder if u ever wanna change em to something else all u have to do is make ur new icon name it the same and drop it in the system32 folder to replace the one thats in there already :)

chopper13
November 5th, 2011, 03:12 AM
ok raz.he put firefox in the right click menu.this worked out just fine,then he wanted to put the ff icon there too.but cant get it too show correctly.an icon does show but it is the first one in shell32.dll.

razorsedge
November 5th, 2011, 04:38 AM
ok chopper ask him for the reg tweak of firefox and send it to me along with the icon he wants to use I can fix it up and put instructions on how to do it to make it very simple :)