UPDATE: Tutorial updated with new screenshots and methods.
You might be using the Desktop context menu since a long time in Windows but did you know that you can customize it to your needs? You can add/remove items from the context menu, you can re-arrange items, you can group those items, you can add your name in the context menu, you can add an image in context menu, you can add your favorite application shortcut in context menu, you can enable "View" menu in context menu. Phew... There are lots of things which you can do with Desktop context menu.
So this tutorial will help you in fully customize the Desktop context menu in Windows XP. So tighten your seat belts and get ready for our journey.
The default Windows XP Desktop context menu looks as following:

and following are a few examples of the customized Desktop context menu which you'll get after following this tutorial:



So without wasting any time, lets start the tutorial:
How to Edit the Desktop Context Menu?
First question comes how will you edit the whole Desktop context menu? To edit it, you'll need Resource Hacker. If you don't know about Resource hacker, then visit this link.
To customize the Desktop context menu, we'll need to edit "%windir%\System32\Shell32.dll" file in Resource hacker. When you'll open "Shell32.dll" file in Resource hacker, you'll see various folders in left-side pane like Bitmap, Menu, String Table. Dialog, etc. We'll only need to edit "Menu" and "String Table" folders for our task.
Customizing Menu Items Text:
To change any menu item text, just replace its name to your desired name. e.g. I have changed almost all menu items names in the given screenshots, Refresh has been renamed to Reload Icons, New has been renamed to Create, Properties has been renamed to Personalize, etc.
Almost all menu items name can be changed in "Menu -> 215". So go to "215" menu in Resource Hacker and change your desired menu item text enclosed in "" and then click on "Compile Script" button. For example, To change "Refresh" to "Reload Icons":
Change following line:
MENUITEM "R&efresh", 28931, MFT_STRING, MFS_ENABLED
To:
MENUITEM "Rel&oad Icons", 28931, MFT_STRING, MFS_ENABLED
To change "Properties" text, you'll need to edit "Menu -> 220".
A few menu items like "Lock Web Items on Desktop", "Show Desktop Icons" and "Run Desktop Cleanup Wizard" are stored in "Menu -> 218".
To change "New" menu item's text, go to "String Table -> 1895" and in right-side pane, change text of "30315" line.
Removing Menu Items:
If you want to remove any particular menu item, then simply select its line of code and delete it and then click on "Compile Script" button. For example, if you want to delete "Refresh" from context menu, then delete following line from "Menu -> 215":
MENUITEM "R&efresh", 28931, MFT_STRING, MFS_ENABLED
Grouping Menu Items:
You can also group menu items to save some menu space and to make it more organized. To group menu items, you'll need to add some extra code.
First add following lines of code at the place where you want to show the main group:
POPUP "Put_Group_Label", 0, MFT_STRING, MFS_ENABLED, 0
{
}
Replace "Put_Group_Label" with any desired text which you want to show in context menu.
Now you'll need to cut paste the desired menu items code between the curly braces.
For example, as in the screenshot I have grouped "View" and "Arrange Icons as" menu items in "Icons Menu". What I did, I pasted the above mentioned code just before the "View" menu item code line and then moved the lines of "View" and "Arrange Icons as" menu items between curly braces.
Its a bit complex task and require some practice.
Adding Image in Desktop Context Menu:
To add an image in context menu, visit following tutorial:
Add an Image in Desktop/Explorer Context Menu in Windows XP
Adding Your Favorite Application Shortcut in Desktop Context Menu:
You can also add any favorite application shortcut to context menu, like Firefox, Media Player, Winamp, etc. To know about it, visit following tutorial:
Add Your Favorite Program Shortcut in Desktop Context Menu in Windows XP
Enable "View" Menu in Desktop Context Menu:
"View" menu is not present in Desktop context menu. After applying following tutorial you'll be able to get "View" menu in Desktop context menu just like Windows Vista:
How to enable VIEW Menu on Desktop in Windows XP
Add Your Name or Any Desired String in Desktop Context Menu:
As you can see in the screenshot, I have put my name at top in context menu. You can also do the same with the help of following tutorial:
How to Add Your Name in Desktop Context Menu in Windows XP?
PS: If you face problems while changing the menu items text, grouping them, enabling view menu, etc, then you can use my ready-made code for it.
Just copy following code and replace the existing code in "Menu -> 215" with this new code. Click on "Compile Script" button and you'll get almost the same look as shown in screenshot. Now you can change the text, etc easily:
215 MENUEX
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
{
POPUP "", 0, MFT_STRING, MFS_ENABLED, 0
{
MENUITEM "!*~.VISHAL.~*!", 33333, MFT_STRING, MFS_GRAYED | MFS_DEFAULT
POPUP "&Icons Menu", 1, MFT_STRING, MFS_ENABLED, 0
{
POPUP "&Show Icons As", 0, MFT_STRING, MFS_ENABLED, 0
{
MENUITEM "Filmstri&p", 28719, MFT_STRING, MFS_ENABLED
MENUITEM "T&humbnails", 28717, MFT_STRING, MFS_ENABLED
MENUITEM "Tile&s", 28718, MFT_STRING, MFS_ENABLED
MENUITEM "Ico&ns", 28713, MFT_STRING, MFS_ENABLED
MENUITEM "&List", 28715, MFT_STRING, MFS_ENABLED
MENUITEM "&Details", 28716, MFT_STRING, MFS_ENABLED
}
POPUP "Sort &Icons By", 28673, MFT_STRING, MFS_ENABLED, 0
{
MENUITEM "", 30208, MFT_SEPARATOR, MFS_ENABLED
MENUITEM "Show in &Groups", 30209, MFT_STRING, MFS_ENABLED
MENUITEM "&Auto Arrange", 28753, MFT_STRING, MFS_ENABLED
MENUITEM "A&lign to Grid", 28756, MFT_STRING, MFS_ENABLED
}
}
POPUP "&Clipboard Menu", 1, MFT_STRING, MFS_ENABLED, 0
{
MENUITEM "&Paste", 28698, MFT_STRING, MFS_ENABLED
MENUITEM "Paste &Shortcut", 28700, MFT_STRING, MFS_ENABLED
MENUITEM "&Undo", 28699, MFT_STRING, MFS_ENABLED
}
MENUITEM "Rel&oad Icons", 28931, MFT_STRING, MFS_ENABLED
MENUITEM "Media Player", 28785, MFT_STRING, MFS_ENABLED
MENUITEM "", 65535, MFT_SEPARATOR, MFS_ENABLED
MENUITEM "Customize This &Folder...", 28722, MFT_STRING, MFS_ENABLED
MENUITEM "", 65535, MFT_SEPARATOR, MFS_ENABLED
}
}
NOTE: If you face problems while saving the file after editing in resource hacker, then make sure you have disabled WFP (Windows File Protection) service using WFP Patcher.
Also if you are getting error “Can’t create file…“, that means you have edited and saved the same file recently and there is a backup file which needs to be deleted before saving the file again. Go to the "System32" folder and you’ll see a file “Shell32_original.dll”. Delete it and try to save the file again.
This article was posted by VG in following section: Resource Hacker, Windows XP.
If you enjoyed this article, you can subscribe to our RSS feed or free newsletter to get all new articles directly in your Inbox. Also check out our most popular articles and archive to read other interesting articles. If you have some news or tip to share, please send us.
Sharath
Wen ever i edit shell32.dll file i am unable to use some applications or even install some programs. for eg wen i open calc i get som dll file error msg . but wen i restore my old shell32 . i am able to open calc. pls help me vishal sir
VG
^^ It seems you are making some mistakes while editing the file. What you are trying to do?
karasme
hi visal
i have seen all your works i just stuned.
so i made my own shell32.dll (with reshack). but its not working. plzzzz help me.
i will tell u step by step
1. i copy my xpsp3 with nlite
2. then integrate WMP11 with WINT11B60Setup(media paler 11 integrator)
3. i add about 88 sp3 updates with nlite. and make a bootable iso
4. i have change the installation screen with WinntbbuED_3.1
5. then i extract the shell32.dll and edit it with res hack so it become 8mb to 21mb
6. i modifyPE.exe shell32.dll -c and its done
7. then i make cab with makecab.exe form cmd and it named shell32.dl_
8. then i open my sp3 iso with magic iso and drag n drop both shell32.dll and shell32.dl_ into my cd (x:\xpsp3\I386)
9. then i burn the cd and install it
everything goes fine without any kind of error but my shell32.dll avi,dialog,icon are showing deafult. when i see the shell32.dll its only 8mb like default and there was a another shell called shell32.dll.tmp
i have spent so much time for this and its ..........
pllzzzzz tell me what i have done wrong and give me your tutorial or tell me step by step what to do. sorry for my bad english and advanced tnx
karasme
hi visal
i have seen all your works i just stuned.
so i made my own shell32.dll (with reshack). but its not working. plzzzz help me.
i will tell u step by step
1. i copy my xpsp3 with nlite
2. then integrate WMP11 with WINT11B60Setup(media paler 11 integrator)
3. i add about 88 sp3 updates with nlite. and make a bootable iso
4. i have change the installation screen with WinntbbuED_3.1
5. then i extract the shell32.dll and edit it with res hack so it become 8mb to 21mb
6. i modifyPE.exe shell32.dll -c and its done
7. then i make cab with makecab.exe form cmd and it named shell32.dl_
8. then i open my sp3 iso with magic iso and drag n drop both shell32.dll and shell32.dl_ into my cd (x:\xpsp3\I386)
9. then i burn the cd and install it
everything goes fine without any kind of error but my shell32.dll avi,dialog,icon are showing deafult. when i see the shell32.dll its only 8mb like default and there was a another shell called shell32.dll.tmp
i have spent so much time for this and its ..........
pllzzzzz tell me what i have done wrong and give me your tutorial or tell me step by step what to do. sorry for my bad english and advanced tnx
VG
^^ There is an option to view folder containing all files in nLite. It appears on Image burning stage. There you can browse the folder and replace original shell32.dl_ file with your modified one.
karasme
hi visal
tnx for reaply. but i dont know.....when i integrate my 88 updates the shell32.dl_ file become disappear. so when i replace it. then if i insert my own shell32.dl_ will it work???
VG
^^ First include all updates. At the time of creating bootable Image, replace default shell32.dl_ with your own one.
karasme
tnx vishal
i have found it.............yaaaaapppiii. there is a problem integrate 1 update. if anyone integrate (WindowsXP-KB955704-x86-ENU) this update then shell32.dl_ file become disapper. i think the update delete shell32.dl_ file and all works will go in vain. but without (WindowsXP-KB955704-x86-ENU) update all my 90 updates till 28/06/09 works fine..yesssssssss. now i can add my own shell. tnx very much for your suggestion. but i will custom much more with your tutorial.
Big Joe
Great tutorial, very informative. I would like to post a link to this blog from my blog on customizing XP Desktop.
karasme
hi vishal. its me again. your tutorial works gr8.but i have some problems. plzz fix it for me.
1. i have added some xp themes with nlite. but it's not applying automaticaly. alltime i have to apply it manualy.
2. i want to change boot screen,so when i install my own xp, default bootscreen will be my own design.
3. i have added a video in msgina.dl_ and change the background n buttons.it works with buttons n background. but video is not playing. is there any codec problem??
plzzzz help me and sorry for my bad english