Difference between revisions of "Ccleaner"
From WPKG | Open Source Software Deployment and Distribution
m |
(Updated to 2.08 and fixed menu icons.) |
||
Line 1: | Line 1: | ||
This is a silent installer and uninstaller for CCleaner. | This is a silent installer and uninstaller for CCleaner. | ||
+ | |||
+ | ccleander.xml: | ||
<source lang="xml"> | <source lang="xml"> | ||
<?xml version="1.0" encoding="UTF-8"?> | <?xml version="1.0" encoding="UTF-8"?> | ||
− | |||
<!-- | <!-- | ||
− | CCleaner homepage : | + | CCleaner homepage : |
− | http://www.ccleaner.com/ | + | http://www.ccleaner.com/ |
− | Download CCleaner without YahooToolbar! : | + | Download CCleaner without YahooToolbar! : |
− | http://www.ccleaner.com/download/builds.aspx | + | http://www.ccleaner.com/download/builds.aspx |
− | WPKG pack by Gabriele | + | WPKG pack by Gabriele |
− | email: gaby"at"rantoloblog.it | + | 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. | ||
+ | --> | ||
<packages> | <packages> | ||
− | + | <package | |
− | + | id="ccleaner" | |
− | + | name="CCleaner" | |
− | + | revision="200806012" | |
− | + | reboot="false" | |
− | + | priority="15"> | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
+ | <check type="uninstall" condition="exists" path="CCleaner (remove only)" /> | ||
+ | <install cmd='%SOFTWARE%\ccleaner\ccsetup208_slim.exe /S' /> | ||
+ | <install cmd='regedit /s %WPKGROOT%\reg\ccleaner.reg' /> | ||
+ | <install cmd='cmd /c mkdir "%AllUsersProfile%\Start Menu\Programs\CCleaner"' /> | ||
+ | <install cmd='cmd /c copy "%UserProfile%\Start Menu\Programs\CCleaner\CCleaner.lnk" "%AllUsersProfile%\Start Menu\Programs\CCleaner"' /> | ||
+ | <install cmd='cmd /c rmdir /q /s "%UserProfile%\Start Menu\Programs\CCleaner"' /> | ||
+ | <install cmd='cmd /c del /q "%UserProfile%\Desktop\CCleaner.lnk"' /> | ||
+ | |||
+ | <upgrade cmd='%SOFTWARE%\ccleaner\ccsetup208_slim.exe /S' /> | ||
+ | <upgrade cmd='regedit /s %WPKGROOT%\reg\ccleaner.reg' /> | ||
+ | <upgrade cmd='cmd /c rmdir /q /s "%UserProfile%\Start Menu\Programs\CCleaner"' /> | ||
+ | <upgrade cmd='cmd /c del /q "%UserProfile%\Desktop\CCleaner.lnk"' /> | ||
+ | |||
+ | <remove cmd='"%ProgramFiles%\CCleaner\uninst.exe" /S' /> | ||
+ | </package> | ||
</packages> | </packages> | ||
</source> | </source> | ||
+ | |||
+ | This will remove the recycle bin context menu items. | ||
+ | |||
+ | ccleaner.reg: | ||
+ | |||
+ | <source lang="reg"> | ||
+ | Windows Registry Editor Version 5.00 | ||
+ | |||
+ | [-HKEY_CLASSES_ROOT\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\Shell\Open CCleaner...] | ||
+ | |||
+ | [-HKEY_CLASSES_ROOT\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\Shell\Run CCleaner] | ||
+ | |||
+ | </source> | ||
+ | |||
[[Category:Silent Installers]] | [[Category:Silent Installers]] |
Revision as of 03:58, 1 June 2008
This is a silent installer and uninstaller for CCleaner.
ccleander.xml:
<?xml version="1.0" encoding="UTF-8"?>
<!--
CCleaner homepage :
http://www.ccleaner.com/
Download CCleaner without YahooToolbar! :
http://www.ccleaner.com/download/builds.aspx
WPKG pack 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.
-->
<packages>
<package
id="ccleaner"
name="CCleaner"
revision="200806012"
reboot="false"
priority="15">
<check type="uninstall" condition="exists" path="CCleaner (remove only)" />
<install cmd='%SOFTWARE%\ccleaner\ccsetup208_slim.exe /S' />
<install cmd='regedit /s %WPKGROOT%\reg\ccleaner.reg' />
<install cmd='cmd /c mkdir "%AllUsersProfile%\Start Menu\Programs\CCleaner"' />
<install cmd='cmd /c copy "%UserProfile%\Start Menu\Programs\CCleaner\CCleaner.lnk" "%AllUsersProfile%\Start Menu\Programs\CCleaner"' />
<install cmd='cmd /c rmdir /q /s "%UserProfile%\Start Menu\Programs\CCleaner"' />
<install cmd='cmd /c del /q "%UserProfile%\Desktop\CCleaner.lnk"' />
<upgrade cmd='%SOFTWARE%\ccleaner\ccsetup208_slim.exe /S' />
<upgrade cmd='regedit /s %WPKGROOT%\reg\ccleaner.reg' />
<upgrade cmd='cmd /c rmdir /q /s "%UserProfile%\Start Menu\Programs\CCleaner"' />
<upgrade cmd='cmd /c del /q "%UserProfile%\Desktop\CCleaner.lnk"' />
<remove cmd='"%ProgramFiles%\CCleaner\uninst.exe" /S' />
</package>
</packages>
This will remove the recycle bin context menu items.
ccleaner.reg:
Windows Registry Editor Version 5.00
[-HKEY_CLASSES_ROOT\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\Shell\Open CCleaner...]
[-HKEY_CLASSES_ROOT\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\Shell\Run CCleaner]