How do I delete the recycle bin as part of an unattended installation.

John Savill

January 8, 2000

1 Min Read
ITPro Today logo in a gray background | ITPro Today

A. A. The recycle bin is just a registry entry so if we delete the registry entry it will remove the recycle bin.

Create the following in a file remreycl.inf

[Version]
Signature = "$Windows NT$"
Provider=%Provider%

[Strings]
Provider="SavillTech Ltd"

[DefaultInstall]
AddReg = AddReg
DelReg = DelReg
UpdateInis = UpdateInis

[AddReg]
[DelReg]
HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionExplorerDesktopNameSpace\{645FF040-5081-101B-9F08-00AA002F954E}
[UpdateInis]

You should then create a $OEM$ folder in your I386 installation directory and copy the file remreycl.reg into the directory.

If the file cmdlines.txt exists edit it otherwise create it (in the $OEM$ directory) and add the following:

[Commands]
"rundll32 setupapi,InstallHinfSection DefaultInstall 128 .remreycl.inf"

About the Author

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like