Difference between revisions of "Ccleaner"
From WPKG | Open Source Software Deployment and Distribution
(→CCleaner) |
|||
Line 22: | Line 22: | ||
<package | <package | ||
id="ccleaner" | id="ccleaner" | ||
− | name="CCleaner | + | name="CCleaner" |
− | revision=" | + | revision="3.8.0.1475" |
reboot="false" | reboot="false" | ||
− | priority=" | + | priority="1090"> |
− | + | ||
+ | <variable name="version" value="3.08" /> | ||
+ | |||
<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. | + | <check type="file" condition="versiongreaterorequal" path="%PROGRAMFILES%\CCleaner\CCleaner.exe" value="3.8.0.1475"/> |
− | + | ||
− | <install cmd='% | + | <install cmd='%WPKGREPO%\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 --> |
− | + | <install cmd='%COMSPEC% /c copy "%WPKGREPO%\ccleaner\%version%\ccleaner.ini" "%PROGRAMFILES%\CCleaner\"' /> | |
− | + | <install cmd='%COMSPEC% /c copy "%WPKGREPO%\ccleaner\%version%\winapp2.ini" "%PROGRAMFILES%\CCleaner\"' /> | |
− | <install cmd='%COMSPEC% /c | + | <!--Remove CCleaner Options from Recycle Bin Right-Click Menu--> |
− | <install cmd='%COMSPEC% /c copy "% | + | <install cmd='reg delete "HKCR\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\Shell\Open CCleaner..." /f' /> |
− | <install cmd=' | + | <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 "% | + | <install cmd='%COMSPEC% /c del /q "%AllUsersProfile%\Desktop\CCleaner.lnk"' > |
− | <install cmd='%COMSPEC% /c del /q "% | + | <exit code="any" /> |
− | < | + | </install> |
− | + | <install cmd='%COMSPEC% /c del /q "%PUBLIC%\Desktop\CCleaner.lnk"' > | |
− | <upgrade cmd='% | + | <exit code="any" /> |
− | <!-- Remove | + | </install> |
− | <upgrade cmd=' | + | |
− | + | <upgrade cmd='%WPKGREPO%\ccleaner\%version%\ccsetup308_slim.exe /S' /> | |
− | <upgrade cmd=' | + | <!--Copies CCleaner Settings to Client - winapp2 updated frequently here http://forum.piriform.com/index.php?showtopic=32066&st=0 --> |
+ | <upgrade cmd='%COMSPEC% /c copy "%WPKGREPO%\ccleaner\%version%\ccleaner.ini" "%PROGRAMFILES%\CCleaner\"' /> | ||
+ | <upgrade cmd='%COMSPEC% /c copy "%WPKGREPO%\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 --> | <!-- Delete any Desktop shortcuts --> | ||
− | <upgrade cmd='%COMSPEC% /c del /q "% | + | <upgrade cmd='%COMSPEC% /c del /q "%AllUsersProfile%\Desktop\CCleaner.lnk"' > |
− | <upgrade cmd='%COMSPEC% /c del /q "% | + | <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='"%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> | ||
</packages> | </packages> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
</source> | </source> | ||
[[Category:Silent Installers]] | [[Category:Silent Installers]] |
Revision as of 22:28, 8 July 2011
This is a silent installer and uninstaller for CCleaner.
CCleaner homepage http://www.ccleaner.com/
You can download the slim installer (without the Yahoo toolbar) here http://www.piriform.com/ccleaner/download/slim.
WPKG package by Gabriele email: gaby"at"rantoloblog.it
Modified by Chris. Note: CCleaner's installer puts the icons in "%UserProfile%". This corrects that. Also, CCleaner adds shortcuts to the recycle bin. The registry script deletes them both.
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='%WPKGREPO%\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 -->
<install cmd='%COMSPEC% /c copy "%WPKGREPO%\ccleaner\%version%\ccleaner.ini" "%PROGRAMFILES%\CCleaner\"' />
<install cmd='%COMSPEC% /c copy "%WPKGREPO%\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='%WPKGREPO%\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 "%WPKGREPO%\ccleaner\%version%\ccleaner.ini" "%PROGRAMFILES%\CCleaner\"' />
<upgrade cmd='%COMSPEC% /c copy "%WPKGREPO%\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>