These instructions operate under the following assumptions:
- CCleaner is installed to C:\Program Files\CCleaner
- A copy of NirCmd (nircmd.exe) has been placed in your system folder at %SystemRoot%\System32
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\shell\Run CCleaner && Shutdown]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\shell\Run CCleaner && Shutdown\command]
@="cmd.exe /c nircmd.exe setsysvolume 8738 & \"\"\"%%ProgramFiles%%\\CCleaner\\CCleaner.exe\"\"\" /AUTO /SHUTDOWN"
Save the file as "addCCleanerToRecycleBin.reg"Double-click on "addCCleanerToRecycleBin.reg" to execute. If everything went as expected, if you right-click on your Recycle Bin you should see a new menu item: "Run CCleaner & Shutdown". Selecting this menu item will execute NirCmd's setsysvolume function which will lower the system's volume to 8738 (of 65535). Afterwards, CCleaner will execute using the current set of saved options* and upon finishing will shutdown the computer.
*To ensure the highest level of security when cleaning files, enable the "Secure file deletion" option within CCleaner.