Adding items to My Computer display
INTRODUCTION
There is a way to add custom items to the Other section of My Comptuer when sort items by group is active. The example will show you how to create and add a folder link item to My Computer called "User Installed Software" which is a folder that exists on my system in C:\Program Files\ Make sure that you customize this for your own use.
PROCEDURE
1. You will need to create a unique CLSID/GUID. The one that I used is this: {801eb159-9ede-4dcb-919f-b55376cd4ceb}
2. Create the target folder "%ProgramFiles%\User Installed Software"
3. Create a reg file with the following information:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\CLSID\{801eb159-9ede-4dcb-919f-b55376cd4ceb}]
@="User Installed Software"
[HKEY_CLASSES_ROOT\CLSID\{801eb159-9ede-4dcb-919f-b55376cd4ceb}\DefaultIcon]
@="shell32.dll,110"
[HKEY_CLASSES_ROOT\CLSID\{801eb159-9ede-4dcb-919f-b55376cd4ceb}\DefaultIcon\InProcServer32]
@="shell32.dll"
"ThreadingModel"="Apartment"
[HKEY_CLASSES_ROOT\CLSID\{801eb159-9ede-4dcb-919f-b55376cd4ceb}\Shell]
[HKEY_CLASSES_ROOT\CLSID\{801eb159-9ede-4dcb-919f-b55376cd4ceb}\Shell\Open]
[HKEY_CLASSES_ROOT\CLSID\{801eb159-9ede-4dcb-919f-b55376cd4ceb}\Shell\Open\Command]
@="explorer /root,C:\\Program Files\\User Installed Software\\"
[HKEY_CLASSES_ROOT\CLSID\{801eb159-9ede-4dcb-919f-b55376cd4ceb}\ShellEx]
[HKEY_CLASSES_ROOT\CLSID\{801eb159-9ede-4dcb-919f-b55376cd4ceb}\ShellEx\PropertySheetHandlers]
@="{e33898de-6302-4756-8f0c-5f6c5218e02e}"
[HKEY_CLASSES_ROOT\CLSID\{801eb159-9ede-4dcb-919f-b55376cd4ceb}\ShellFolder]
"Attributes"=dword:0000003c
The key HKCR\CLSID\{801eb159-9ede-4dcb-919f-b55376cd4ceb}\Shell\Open\Command will determine what command is executed when this CLSID is activated.
4. Create a second .reg file with the following information:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace]
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{801eb159-9ede-4dcb-919f-b55376cd4ceb}]
@="User Installed Software"
This will add the link into My Computer. So when you double-click the link in My Computer, it activates the CLSID which then activates the command, which then opens the folder that it's pointed to.
NOTES
You must use a unique CLSID/GUID. There are several programs out there (I think there's one in the Platform SDK) that will do this.
The line @="explorer /root,C:\\Program Files\\User Installed Software\\" is the command that is executed when the CLSID is activated. You may change this to anything that you want.
You can add any Windows object to My Computer by creating a subkey of the same name as the CLSID of the object that you want to add into the following registry key:
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace]
The default item in the subkey will be the name of the item as shown in My Computer. Granted, some CLSIDs are more useful than others.
» Example Registry Tweak
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace]
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{CLSID of object to add}]
@="Name of object that will be shown in My Computer"