In a managed environment you're best using CCLeaner (Slim) that doesn't include the Yahoo! Toolbar. The Slim version is available from http://www.piriform.com/ccleaner/download/slim or from the Builds download page on the CCleaner web site a week or two after the release of any new version of CCleaner. Note that after a new release, and before the new Slim version is made available, the previous Slim version will not be available, at least using the web site interface.
== CCleaner WPKG Package ==
<source lang="xml">
<?xml version="1.0" encoding="UTF-8"?>
<packages>
<package id="ccleaner" name="CCleaner" revision="3.8.0.1475" reboot="false" priority="1090">
<variable name="version" value="3.08" />
<check type="uninstall" condition="exists" path="CCleaner" />
<check type="file" condition="versiongreaterorequal" path="%PROGRAMFILES%\CCleaner\CCleaner.exe" value="3.8.0.1475"/>
<install cmd='%SOFTWARE%\ccleaner\ccsetup308_slim.exe /S' />
<!--Copies CCleaner Settings to Client - winapp2 updated frequently here http://forum.piriform.com/index.php?showtopic=32066&st=0 --> <install upgrade cmd='%COMSPEC% /c copy "%SOFTWARE%\ccleaner\%version%\ccleanerccsetup308_slim.ini" exe /S' /> <remove cmd='"%PROGRAMFILESProgramFiles%\CCleaner\uninst.exe"/S' /></package></packages></source>
<install cmd='%COMSPEC% /c copy "%SOFTWARE%\ccleaner\%version%\= Configuration ==Installe CCleaner settings - winapp2updated frequently at http://forum.ini" "%PROGRAMFILES%\CCleaner\"' piriform.com/>index.php?showtopic=32066&st=0
<!--Remove CCleaner Options from Recycle Bin Right-Click Menu--source lang="xml"> <install cmd='reg delete %COMSPEC% /c copy "HKCR%SOFTWARE%\CLSIDccleaner\{645FF040-5081-101B-9F08-00AA002F954E}ccleaner.ini" "%PROGRAMFILES%\Shell\Open CCleaner...\" /f' />
<install cmd='reg delete %COMSPEC% /c copy "HKCR%SOFTWARE%\CLSIDccleaner\{645FF040-5081-101B-9F08-00AA002F954E}winapp2.ini" "%PROGRAMFILES%\Shell\Run CCleaner\" /f' />
<!-- Delete any Desktop shortcuts --> <install upgrade cmd='%COMSPEC% /c del /q copy "%AllUsersProfileSOFTWARE%\Desktopccleaner\CCleanerccleaner.lnkini"' > <exit code="any%PROGRAMFILES%\CCleaner\" ' /> </install>
<install upgrade cmd='%COMSPEC% /c del /q copy "%PUBLICSOFTWARE%\Desktopccleaner\CCleanerwinapp2.lnkini"' > <exit code="any%PROGRAMFILES%\CCleaner\" ' /> </install> <upgrade cmd='%SOFTWARE%\ccleaner\%version%\ccsetup308_slim.exe /S' /source>
<!--Copies CCleaner Settings to Client - winapp2 updated frequently here http://forum.piriform.com/index.php?showtopic=32066&st=0 -->
<upgrade cmd='%COMSPEC% /c copy "%SOFTWARE%\ccleaner\%version%\ccleaner.ini" "%PROGRAMFILES%\CCleaner\"' />
<upgrade cmd='%COMSPEC% /c copy "%SOFTWARE%Disable the update check for all users: HKLM\ccleanerSoftware\%version%\winapp2.ini" "%PROGRAMFILES%Piriform\CCleaner\"' />UpdateCheck=REG_SZ:0
<!--Remove CCleaner Options options from Recycle Bin Right-Click Menu-right->click menu: <upgrade cmd='reg delete " HKCR\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\Shell\Open CCleaner..." /f' />
<upgrade cmd='reg delete "HKCR\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\Shell\Run CCleaner" /f' /> <!-- Delete any Desktop shortcuts -->: <upgrade cmdsource lang='%COMSPEC% /c "dos">del /q "%AllUsersProfile%\Desktop\CCleaner.lnk"' > <exit code="any" /> </upgrade> <upgrade cmd='%COMSPEC% /c del /q "%PUBLIC%\Desktop\CCleaner.lnk"' > <exit code="any" /> </upgrade> <remove cmd='"%ProgramFiles%\CCleaner\uninst.exe" /S' /> <remove cmd='%COMSPEC% /c rmdir /q /s "%AllUsersProfile%\Start Menu\Programs\CCleaner"' /> </package></packages>
</source>
[[Category:Silent Installers]]