Difference between revisions of "Defraggler"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
(mixup with MyDefrag)
(Updated to version 2.00 and added commands to remove desktop icons after it's installed)
Line 13: Line 13:
 
<package
 
<package
 
id="defraggler"
 
id="defraggler"
name="Defraggler 1.20"
+
name="Defraggler 2.00"
revision="1"
+
revision="200"
 
reboot="false"
 
reboot="false"
priority="3">
+
priority="0">
+
 
 
<check type="uninstall" condition="exists" path="Defraggler" />
 
<check type="uninstall" condition="exists" path="Defraggler" />
<check type="file" condition="versiongreaterorequal" path="%PROGRAMFILES%\Defraggler\Defraggler.exe" value="1.20.0.201" />
+
<check type="file" condition="versiongreaterorequal" path="%PROGRAMFILES%\Defraggler\Defraggler.exe" value="2.0.0.230" />
+
 
<install cmd='%SOFTWARE%\defraggler\dfsetup120_slim.exe /S' />
+
<install cmd='%SOFTWARE%\defraggler\dfsetup200_slim.exe /S' />
+
<install cmd='%COMSPEC% /c del /q "%UserProfile%\Desktop\Defraggler.lnk"' >
<upgrade cmd='%SOFTWARE%\defraggler\dfsetup120_slim.exe /S' />
+
<exit code="any" />
+
</install>
 +
<install cmd='%COMSPEC% /c del /q "%AllUsersProfile%\Desktop\Defraggler.lnk"' >
 +
<exit code="any" />
 +
</install>
 +
<install cmd='%COMSPEC% /c del /q "%Public%\Desktop\Defraggler.lnk"' >
 +
<exit code="any" />
 +
</install>
 +
 
 +
<upgrade cmd='%SOFTWARE%\defraggler\dfsetup200_slim.exe /S' />
 +
<upgrade cmd='%COMSPEC% /c del /q "%UserProfile%\Desktop\Defraggler.lnk"' >
 +
<exit code="any" />
 +
</upgrade>
 +
<upgrade cmd='%COMSPEC% /c del /q "%AllUsersProfile%\Desktop\Defraggler.lnk"' >
 +
<exit code="any" />
 +
</upgrade>
 +
<upgrade cmd='%COMSPEC% /c del /q "%Public%\Desktop\Defraggler.lnk"' >
 +
<exit code="any" />
 +
</upgrade>
 +
 
 
<remove cmd='"%ProgramFiles%\Defraggler\uninst.exe" /S' />
 
<remove cmd='"%ProgramFiles%\Defraggler\uninst.exe" /S' />
</package>  
+
<remove cmd='%COMSPEC% /c rmdir /q /s "%AllUsersProfile%\Start Menu\Programs\Defraggler"' />
 +
</package>
  
 
</packages>
 
</packages>

Revision as of 01:36, 18 November 2010

Defraggler is a defragmentation utility from Piriform (the authors of CCleaner and Recuva).

Defraggler is available from http://www.defraggler.com. A 'slim' installer, without the bundled toolbar, is available from http://www.defraggler.com/download/builds.

WPKG Package

 

<?xml version="1.0" encoding="UTF-8"?>

<packages>

	<package
		id="defraggler"
		name="Defraggler 2.00"
		revision="200"
		reboot="false"
		priority="0">

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

		<install cmd='%SOFTWARE%\defraggler\dfsetup200_slim.exe /S' />
		<install cmd='%COMSPEC% /c del /q "%UserProfile%\Desktop\Defraggler.lnk"' >
			<exit code="any" />
		</install>
		<install cmd='%COMSPEC% /c del /q "%AllUsersProfile%\Desktop\Defraggler.lnk"' >
			<exit code="any" />
		</install>
		<install cmd='%COMSPEC% /c del /q "%Public%\Desktop\Defraggler.lnk"' >
			<exit code="any" />
		</install>

		<upgrade cmd='%SOFTWARE%\defraggler\dfsetup200_slim.exe /S' />
		<upgrade cmd='%COMSPEC% /c del /q "%UserProfile%\Desktop\Defraggler.lnk"' >
			<exit code="any" />
		</upgrade>
		<upgrade cmd='%COMSPEC% /c del /q "%AllUsersProfile%\Desktop\Defraggler.lnk"' >
			<exit code="any" />
		</upgrade>
		<upgrade cmd='%COMSPEC% /c del /q "%Public%\Desktop\Defraggler.lnk"' >
			<exit code="any" />
		</upgrade>

		<remove cmd='"%ProgramFiles%\Defraggler\uninst.exe" /S' />
		<remove cmd='%COMSPEC% /c rmdir /q /s "%AllUsersProfile%\Start Menu\Programs\Defraggler"' />
	</package>

</packages>