Jump to content

[How-to] Add Recycle Bin to start menu


ricktendo

Recommended Posts

In case anyone is interested, i have been tinkering with this Recycle Bin on the Desktop for a while as I wasn't satisfied with implementing the attached hack only to have to then still select it after windows booted up. here is what i discovered. i am including because i haven't found it anywhere else (i suspect I am not the first to discover this but maybe someone who will follow will be interested)

; ### will reveal whatever is set to OEMLink in Start Menu at logon (in this case Recycle Bin) even if default behavior hides it

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]

"Start_ShowOEMLink"=dword:00000001

; ### will remove Recycle Bin from desktop at logon even if default behavior places Recycle Bin on desktop

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel]

"{645FF040-5081-101B-9F08-00AA002F954E}"=dword:00000001

; ### will set the default behavior of the OEMLink in Start Menu to VISIBLE

; ### in the absence of this setting the default behavior of the OEMLink in Start Menu is set to VISIBLE so this setting should really be unnecessary

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced]

"Start_ShowOEMLink"=dword:00000001

; ### will set the default behavior of the Recycle Bin on the desktop to HIDDEN

; ### in the absence of this setting the default behavior of the Recycle Bin on the desktop is set to VISIBLE

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel]

"{645FF040-5081-101B-9F08-00AA002F954E}"=dword:00000001

Link to comment
Share on other sites


forgive me, i know barely enough to be dangerous. the suggestions i made were built on top of the files that Cygnus and others have contributed towards which referenced the same number. from reviewing the file authored by Cygnus and others, it looks like the number i used was defined in an earlier registry entry. in any case it has worked consistently.

Link to comment
Share on other sites

actually, i just unpacked and searched through the inf included in your UberPack and the it contains this random number, and looks defined.

He means CLSIDs in general. You can create them in Visual C++ for your apps, and MS's software generated them randomly. In the Windows OS, yes, they have a consistent meaning, but way back when, when Windows 2000 was created, all of the OS component CLSIDs started life this way -- as randomly generated numbers when Microsoft was compiling the libraries.

Link to comment
Share on other sites

  • 3 months later...

Instead of hiding the Recycle bin on the Desktop you can also move the Recycle bin to My computer. To show the Recyclebin on Start Menu I use the following tweaks:

[RunOnceEx.AddReg]
;Add Recycle bin to My computer
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{645FF040-5081-101B-9F08-00AA002F954E}",,0x10
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{645FF040-5081-101B-9F08-00AA002F954E}",,0x0,"Recycle Bin"
;Add Recycle Bin shortcut to the Start Menu
HKCR,"CLSID\{2559a1f6-21d7-11d4-bdaf-00c04f60b9f0}",,0,"@%%SystemRoot%%\system32\shell32.dll,-8964"
HKCR,"CLSID\{2559a1f6-21d7-11d4-bdaf-00c04f60b9f0}","InfoTip",0,"@%%SystemRoot%%\system32\shell32.dll,-22915."
HKCR,"CLSID\{2559a1f6-21d7-11d4-bdaf-00c04f60b9f0}\DefaultIcon",,0,"%11%\shell32.dll,31"
HKCR,"CLSID\{2559a1f6-21d7-11d4-bdaf-00c04f60b9f0}\InProcServer32",,0x20000,"%%SystemRoot%%\system32\shdocvw.dll"
HKCR,"CLSID\{2559a1f6-21d7-11d4-bdaf-00c04f60b9f0}\InProcServer32","ThreadingModel",0,"Apartment"
HKCR,"CLSID\{2559a1f6-21d7-11d4-bdaf-00c04f60b9f0}\Instance","CLSID",0,"{3f454f0e-42ae-4d7c-8ea3-328250d6e272}"
HKCR,"CLSID\{2559a1f6-21d7-11d4-bdaf-00c04f60b9f0}\Instance\InitPropertyBag","CLSID",0,"{13709620-C279-11CE-A49E-444553540000}"
HKCR,"CLSID\{2559a1f6-21d7-11d4-bdaf-00c04f60b9f0}\Instance\InitPropertyBag","method",0,"ShellExecute"
HKCR,"CLSID\{2559a1f6-21d7-11d4-bdaf-00c04f60b9f0}\Instance\InitPropertyBag","Command",0,"@%%SystemRoot%%\system32\shell32.dll,-8964"
HKCR,"CLSID\{2559a1f6-21d7-11d4-bdaf-00c04f60b9f0}\Instance\InitPropertyBag","Param1",0,"::{20D04FE0-3AEA-1069-A2D8-08002B30309D}\::{645FF040-5081-101B-9F08-00AA002F954E}"
HKCR,"CLSID\{2559a1f6-21d7-11d4-bdaf-00c04f60b9f0}\shellex\ContextMenuHandlers\{645FF040-5081-101B-9F08-00AA002F954E}",,0
HKCR,"CLSID\{2559a1f6-21d7-11d4-bdaf-00c04f60b9f0}\shellex\MayChangeDefaultMenu",,0
HKCR,"CLSID\{2559a1f6-21d7-11d4-bdaf-00c04f60b9f0}\ShellFolder","Attributes",0x10001,00,00,00,00

[RunOnceEx.DelReg]
;Remove Recycle bin from Desktop
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\{645FF040-5081-101B-9F08-00AA002F954E}"

NOTE: Only tested on Windows XP. I don't add extra options to any Windows menu. As I configure my CD no need to change options afterwards :whistle:

Edited by Acheron
Link to comment
Share on other sites

  • 6 months later...

I accidentally installed this in Vista. How do I restore everything so I can install the right one?

Please help :(

It seems all registry entries from this tweak are also modified in the Vista version. I tried removing everything and installing the Vista tweak but Recycle Bin doesn't show on my Start menu, whether the option is checked or not.

Removing it from the desktom works though...

Any ideas?

Edited by Chipicao
Link to comment
Share on other sites

If you used a registry file (*.reg), then you can add a "-" (minus sign) after all "[" and in front of "HKCU" or HKLM" or whatever it may be and it will delete all those entries.

So for example:

[HKEY_CLASSES_ROOT\CLSID\{2559a1f6-21d7-11d4-bdaf-00c04f60b9f0}]
@="@%SystemRoot%\\system32\\SHELL32.dll,-8964"
"InfoTip"="@%SystemRoot%\\system32\\SHELL32.dll,-22915"

would become

[-HKEY_CLASSES_ROOT\CLSID\{2559a1f6-21d7-11d4-bdaf-00c04f60b9f0}]
@="@%SystemRoot%\\system32\\SHELL32.dll,-8964"
"InfoTip"="@%SystemRoot%\\system32\\SHELL32.dll,-22915"

Link to comment
Share on other sites

  • 2 years later...
  • 3 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...