Difference between revisions of "Ccleaner"
m (update to 5.28) |
m (update to 531) |
||
Line 15: | Line 15: | ||
priority="1090"> | priority="1090"> | ||
− | <variable name="version" value=" | + | <variable name="version" value="531" /> |
− | <variable name="installver" value="5. | + | <variable name="installver" value="5.31.0.6105" /> |
<variable architecture="x86" name="ccleanerexe" value="CCleaner.exe" /> | <variable architecture="x86" name="ccleanerexe" value="CCleaner.exe" /> | ||
<variable architecture="x64" name="ccleanerexe" value="CCleaner64.exe" /> | <variable architecture="x64" name="ccleanerexe" value="CCleaner64.exe" /> |
Revision as of 14:04, 20 June 2017
This is a silent installer and uninstaller for CCleaner, a utility for cleaning up a system in terms of removing unwanted files. CCleaner is available from http://www.ccleaner.com.
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.
WPKG Package
<?xml version="1.0" encoding="UTF-8"?>
<packages>
<package
id="ccleaner"
name="CCleaner"
revision="%version%"
reboot="false"
priority="1090">
<variable name="version" value="531" />
<variable name="installver" value="5.31.0.6105" />
<variable architecture="x86" name="ccleanerexe" value="CCleaner.exe" />
<variable architecture="x64" name="ccleanerexe" value="CCleaner64.exe" />
<check type="uninstall" condition="exists" path="CCleaner" />
<check type="file" condition="versiongreaterorequal" path="%PROGRAMFILES%\CCleaner\%ccleanerexe%" value="%installver%"/>
<!--
Examples for language support
See https://www.piriform.com/docs/ccleaner/advanced-usage/command-line-parameters
-->
<!-- English default -->
<variable name="lang_code" value="1033" />
<!-- French -->
<variable name="lang_code" value="1036" lcidOS="040c,080c,2c0c,0c0c,240c,300c,3c0c,140c,340c,180c,380c,e40c,200c,280c,100c,1c0c" />
<install cmd="taskkill /F /IM %ccleanerexe%">
<exit code="0" />
<exit code="128" />
<exit code="1" />
</install>
<install cmd='"%SOFTWARE%\ccleaner\ccsetup%version%_slim.exe" /S /L=%lang_code%' />
<install cmd='%COMSPEC% /C if exist "%UserProfile%\Desktop\CCleaner.lnk" del /q "%UserProfile%\Desktop\CCleaner.lnk"' />
<upgrade include="install" />
<remove cmd='%PROGRAMFILES%\ccleaner\uninst.exe /S' />
</package>
</packages>
Configuration
Install CCleaner settings - see details here.
<install cmd='%COMSPEC% /c copy "%SOFTWARE%\ccleaner\ccleaner.ini" "%PROGRAMFILES%\CCleaner\"' />
<install cmd='%COMSPEC% /c copy "%SOFTWARE%\ccleaner\winapp2.ini" "%PROGRAMFILES%\CCleaner\"' />
<upgrade cmd='%COMSPEC% /c copy "%SOFTWARE%\ccleaner\ccleaner.ini" "%PROGRAMFILES%\CCleaner\"' />
<upgrade cmd='%COMSPEC% /c copy "%SOFTWARE%\ccleaner\winapp2.ini" "%PROGRAMFILES%\CCleaner\"' />
Disable the update check for all users:
HKLM\Software\Piriform\CCleaner\UpdateCheck=REG_SZ:0
Remove CCleaner options from Recycle Bin right-click menu:
HKCR\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\Shell\Open CCleaner...
Delete any Desktop shortcuts ("Desktop" is related to US/English windows release, "Bureau" in french ...):
del /q "%AllUsersProfile%\Desktop\CCleaner.lnk"