Difference between revisions of "Ccleaner"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
m (Updated to version 3.00 and added commands to delete desktop shortcuts)
(Updated to CCleaner 3.0.1 and cleaned up the package)
Line 1: Line 1:
 
This is a silent installer and uninstaller for CCleaner.
 
This is a silent installer and uninstaller for CCleaner.
  
You can download the slim installer (without the Yahoo toolbar) here http://www.piriform.com/ccleaner/download/slim.
+
CCleaner homepage
 
+
== CCleaner 3.00 ==
+
 
+
<source lang="xml">
+
<?xml version="1.0" encoding="UTF-8"?>
+
<!--                   
+
CCleaner homepage :
+
 
http://www.ccleaner.com/
 
http://www.ccleaner.com/
  
Download  CCleaner without YahooToolbar! :
+
You can download the slim installer (without the Yahoo toolbar) here
http://www.ccleaner.com/download/builds.aspx
+
http://www.piriform.com/ccleaner/download/slim.
  
WPKG pack by Gabriele
+
WPKG package by Gabriele
 
email: gaby"at"rantoloblog.it
 
email: gaby"at"rantoloblog.it
  
Line 21: Line 14:
 
This corrects that.  Also, CCleaner adds shortcuts to the
 
This corrects that.  Also, CCleaner adds shortcuts to the
 
recycle bin.  The registry script deletes them both.
 
recycle bin.  The registry script deletes them both.
-->
 
  
 +
== CCleaner ==
 +
 +
<source lang="xml">
 +
<?xml version="1.0" encoding="UTF-8"?>
 
<packages>
 
<packages>
 
<package
 
<package
 
id="ccleaner"
 
id="ccleaner"
name="CCleaner 3.00"
+
name="CCleaner 3.01"
revision="300"
+
revision="301"
 
reboot="false"
 
reboot="false"
 
priority="0">
 
priority="0">
  
 
<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.0.0.1310"/>
+
<check type="file" condition="versiongreaterorequal" path="%PROGRAMFILES%\CCleaner\CCleaner.exe" value="3.0.1.1327"/>
  
<install cmd='%SOFTWARE%\ccleaner\ccsetup300_slim.exe /S' />
+
<install cmd='%SOFTWARE%\ccleaner\ccsetup301_slim.exe /S' />
 +
<!-- Remove the recycle bin context menu items -->
 
<install cmd='regedit /s %WPKGROOT%\reg\ccleaner.reg' />
 
<install cmd='regedit /s %WPKGROOT%\reg\ccleaner.reg' />
 +
<!-- Move the start menu shortcuts to the All Users profile -->
 
<install cmd='%COMSPEC% /c mkdir "%AllUsersProfile%\Start Menu\Programs\CCleaner"' />
 
<install cmd='%COMSPEC% /c mkdir "%AllUsersProfile%\Start Menu\Programs\CCleaner"' />
 
<install cmd='%COMSPEC% /c copy "%UserProfile%\Start Menu\Programs\CCleaner\CCleaner.lnk" "%AllUsersProfile%\Start Menu\Programs\CCleaner"' />
 
<install cmd='%COMSPEC% /c copy "%UserProfile%\Start Menu\Programs\CCleaner\CCleaner.lnk" "%AllUsersProfile%\Start Menu\Programs\CCleaner"' />
 
<install cmd='%COMSPEC% /c rmdir /q /s "%UserProfile%\Start Menu\Programs\CCleaner"' />
 
<install cmd='%COMSPEC% /c rmdir /q /s "%UserProfile%\Start Menu\Programs\CCleaner"' />
<install cmd='%COMSPEC% /c del /q "%UserProfile%\Desktop\CCleaner.lnk"' >
+
<!-- Delete any Desktop shortcuts -->
<exit code="any" />
+
<install cmd='%COMSPEC% /c del /q "%UserProfile%\Desktop\CCleaner.lnk"' ><exit code="any" /></install>
</install>
+
<install cmd='%COMSPEC% /c del /q "%AllUsersProfile%\Desktop\CCleaner.lnk"' ><exit code="any" /></install>
<install cmd='%COMSPEC% /c del /q "%AllUsersProfile%\Desktop\CCleaner.lnk"' >
+
<install cmd='%COMSPEC% /c del /q "%Public%\Desktop\CCleaner.lnk"' ><exit code="any" /></install>
<exit code="any" />
+
</install>
+
<install cmd='%COMSPEC% /c del /q "%Public%\Desktop\CCleaner.lnk"' >
+
<exit code="any" />
+
</install>
+
  
<upgrade cmd='%SOFTWARE%\ccleaner\ccsetup300_slim.exe /S' />
+
<upgrade cmd='%SOFTWARE%\ccleaner\ccsetup301_slim.exe /S' />
 +
<!-- Remove the recycle bin context menu items -->
 
<upgrade cmd='regedit /s %WPKGROOT%\reg\ccleaner.reg' />
 
<upgrade cmd='regedit /s %WPKGROOT%\reg\ccleaner.reg' />
 +
<!-- The start menu shortcuts should already be in the All Users profile -->
 
<upgrade cmd='%COMSPEC% /c rmdir /q /s "%UserProfile%\Start Menu\Programs\CCleaner"' />
 
<upgrade cmd='%COMSPEC% /c rmdir /q /s "%UserProfile%\Start Menu\Programs\CCleaner"' />
<upgrade cmd='%COMSPEC% /c del /q "%UserProfile%\Desktop\CCleaner.lnk"' >
+
<!-- Delete any Desktop shortcuts -->
<exit code="any" />
+
<upgrade cmd='%COMSPEC% /c del /q "%UserProfile%\Desktop\CCleaner.lnk"' ><exit code="any" /></upgrade>
</upgrade>
+
<upgrade cmd='%COMSPEC% /c del /q "%AllUsersProfile%\Desktop\CCleaner.lnk"' ><exit code="any" /></upgrade>
<upgrade cmd='%COMSPEC% /c del /q "%AllUsersProfile%\Desktop\CCleaner.lnk"' >
+
<upgrade cmd='%COMSPEC% /c del /q "%Public%\Desktop\CCleaner.lnk"' ><exit code="any" /></upgrade>
<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' />

Revision as of 18:11, 27 November 2010

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 3.01"
		revision="301"
		reboot="false"
		priority="0">

		<check type="uninstall" condition="exists" path="CCleaner" />
		<check type="file" condition="versiongreaterorequal" path="%PROGRAMFILES%\CCleaner\CCleaner.exe" value="3.0.1.1327"/>

		<install cmd='%SOFTWARE%\ccleaner\ccsetup301_slim.exe /S' />
		<!-- Remove the recycle bin context menu items -->
		<install cmd='regedit /s %WPKGROOT%\reg\ccleaner.reg' />
		<!-- Move the start menu shortcuts to the All Users profile -->
		<install cmd='%COMSPEC% /c mkdir "%AllUsersProfile%\Start Menu\Programs\CCleaner"' />
		<install cmd='%COMSPEC% /c copy "%UserProfile%\Start Menu\Programs\CCleaner\CCleaner.lnk" "%AllUsersProfile%\Start Menu\Programs\CCleaner"' />
		<install cmd='%COMSPEC% /c rmdir /q /s "%UserProfile%\Start Menu\Programs\CCleaner"' />
		<!-- Delete any Desktop shortcuts -->
		<install cmd='%COMSPEC% /c del /q "%UserProfile%\Desktop\CCleaner.lnk"' ><exit code="any" /></install>
		<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\ccsetup301_slim.exe /S' />
		<!-- Remove the recycle bin context menu items -->
		<upgrade cmd='regedit /s %WPKGROOT%\reg\ccleaner.reg' />
		<!-- The start menu shortcuts should already be in the All Users profile -->
		<upgrade cmd='%COMSPEC% /c rmdir /q /s "%UserProfile%\Start Menu\Programs\CCleaner"' />
		<!-- Delete any Desktop shortcuts -->
		<upgrade cmd='%COMSPEC% /c del /q "%UserProfile%\Desktop\CCleaner.lnk"' ><exit code="any" /></upgrade>
		<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>

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]