Difference between revisions of "Ccleaner"
From WPKG | Open Source Software Deployment and Distribution
(Various additions and amendments) |
|||
Line 1: | Line 1: | ||
− | This is a silent installer and uninstaller for CCleaner. | + | 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. |
− | + | ||
− | CCleaner | + | |
− | 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. | ||
== CCleaner == | == CCleaner == | ||
Line 23: | Line 18: | ||
<check type="uninstall" condition="exists" path="CCleaner" /> | <check type="uninstall" condition="exists" path="CCleaner" /> | ||
+ | |||
<check type="file" condition="versiongreaterorequal" path="%PROGRAMFILES%\CCleaner\CCleaner.exe" value="3.8.0.1475"/> | <check type="file" condition="versiongreaterorequal" path="%PROGRAMFILES%\CCleaner\CCleaner.exe" value="3.8.0.1475"/> | ||
− | <install cmd='% | + | <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 --> | <!--Copies CCleaner Settings to Client - winapp2 updated frequently here http://forum.piriform.com/index.php?showtopic=32066&st=0 --> | ||
− | <install cmd='%COMSPEC% /c copy "% | + | <install cmd='%COMSPEC% /c copy "%SOFTWARE%\ccleaner\%version%\ccleaner.ini" "%PROGRAMFILES%\CCleaner\"' /> |
− | <install cmd='%COMSPEC% /c copy "% | + | |
+ | <install cmd='%COMSPEC% /c copy "%SOFTWARE%\ccleaner\%version%\winapp2.ini" "%PROGRAMFILES%\CCleaner\"' /> | ||
+ | |||
<!--Remove CCleaner Options from Recycle Bin Right-Click Menu--> | <!--Remove CCleaner Options from Recycle Bin Right-Click Menu--> | ||
<install cmd='reg delete "HKCR\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\Shell\Open CCleaner..." /f' /> | <install cmd='reg delete "HKCR\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\Shell\Open CCleaner..." /f' /> | ||
+ | |||
<install cmd='reg delete "HKCR\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\Shell\Run CCleaner" /f' /> | <install cmd='reg delete "HKCR\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\Shell\Run CCleaner" /f' /> | ||
+ | |||
<!-- Delete any Desktop shortcuts --> | <!-- Delete any Desktop shortcuts --> | ||
<install cmd='%COMSPEC% /c del /q "%AllUsersProfile%\Desktop\CCleaner.lnk"' > | <install cmd='%COMSPEC% /c del /q "%AllUsersProfile%\Desktop\CCleaner.lnk"' > | ||
<exit code="any" /> | <exit code="any" /> | ||
</install> | </install> | ||
+ | |||
<install cmd='%COMSPEC% /c del /q "%PUBLIC%\Desktop\CCleaner.lnk"' > | <install cmd='%COMSPEC% /c del /q "%PUBLIC%\Desktop\CCleaner.lnk"' > | ||
<exit code="any" /> | <exit code="any" /> | ||
</install> | </install> | ||
− | <upgrade cmd='% | + | <upgrade cmd='%SOFTWARE%\ccleaner\%version%\ccsetup308_slim.exe /S' /> |
+ | |||
<!--Copies CCleaner Settings to Client - winapp2 updated frequently here http://forum.piriform.com/index.php?showtopic=32066&st=0 --> | <!--Copies CCleaner Settings to Client - winapp2 updated frequently here http://forum.piriform.com/index.php?showtopic=32066&st=0 --> | ||
− | <upgrade cmd='%COMSPEC% /c copy "% | + | <upgrade cmd='%COMSPEC% /c copy "%SOFTWARE%\ccleaner\%version%\ccleaner.ini" "%PROGRAMFILES%\CCleaner\"' /> |
− | <upgrade cmd='%COMSPEC% /c copy "% | + | |
+ | <upgrade cmd='%COMSPEC% /c copy "%SOFTWARE%\ccleaner\%version%\winapp2.ini" "%PROGRAMFILES%\CCleaner\"' /> | ||
+ | |||
<!--Remove CCleaner Options from Recycle Bin Right-Click Menu--> | <!--Remove CCleaner Options from Recycle Bin 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\Open CCleaner..." /f' /> | ||
+ | |||
<upgrade cmd='reg delete "HKCR\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\Shell\Run CCleaner" /f' /> | <upgrade cmd='reg delete "HKCR\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\Shell\Run CCleaner" /f' /> | ||
+ | |||
<!-- Delete any Desktop shortcuts --> | <!-- Delete any Desktop shortcuts --> | ||
<upgrade cmd='%COMSPEC% /c del /q "%AllUsersProfile%\Desktop\CCleaner.lnk"' > | <upgrade cmd='%COMSPEC% /c del /q "%AllUsersProfile%\Desktop\CCleaner.lnk"' > | ||
<exit code="any" /> | <exit code="any" /> | ||
</upgrade> | </upgrade> | ||
+ | |||
<upgrade cmd='%COMSPEC% /c del /q "%PUBLIC%\Desktop\CCleaner.lnk"' > | <upgrade cmd='%COMSPEC% /c del /q "%PUBLIC%\Desktop\CCleaner.lnk"' > | ||
<exit code="any" /> | <exit code="any" /> | ||
Line 56: | Line 64: | ||
<remove cmd='"%ProgramFiles%\CCleaner\uninst.exe" /S' /> | <remove cmd='"%ProgramFiles%\CCleaner\uninst.exe" /S' /> | ||
+ | |||
<remove cmd='%COMSPEC% /c rmdir /q /s "%AllUsersProfile%\Start Menu\Programs\CCleaner"' /> | <remove cmd='%COMSPEC% /c rmdir /q /s "%AllUsersProfile%\Start Menu\Programs\CCleaner"' /> | ||
</package> | </package> |
Revision as of 13:11, 21 October 2011
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.
CCleaner
<?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 cmd='%COMSPEC% /c copy "%SOFTWARE%\ccleaner\%version%\ccleaner.ini" "%PROGRAMFILES%\CCleaner\"' />
<install cmd='%COMSPEC% /c copy "%SOFTWARE%\ccleaner\%version%\winapp2.ini" "%PROGRAMFILES%\CCleaner\"' />
<!--Remove CCleaner Options from Recycle Bin Right-Click Menu-->
<install cmd='reg delete "HKCR\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\Shell\Open CCleaner..." /f' />
<install cmd='reg delete "HKCR\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\Shell\Run CCleaner" /f' />
<!-- Delete any Desktop shortcuts -->
<install cmd='%COMSPEC% /c del /q "%AllUsersProfile%\Desktop\CCleaner.lnk"' >
<exit code="any" />
</install>
<install cmd='%COMSPEC% /c del /q "%PUBLIC%\Desktop\CCleaner.lnk"' >
<exit code="any" />
</install>
<upgrade cmd='%SOFTWARE%\ccleaner\%version%\ccsetup308_slim.exe /S' />
<!--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%\ccleaner\%version%\winapp2.ini" "%PROGRAMFILES%\CCleaner\"' />
<!--Remove CCleaner Options from Recycle Bin 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 cmd='%COMSPEC% /c 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>