Ultradefrag for WPKG on iPasserelle
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
1.8 KiB

<?xml version="1.0" encoding="UTF-8"?>
<packages>
<package id="ultradefrag"
name="UltraDefrag"
revision="5"
reboot="false"
priority="10">
<variable name="PKG_VERSION" value="6.0.1" />
<variable architecture="x86" name="EXE_PATH" value="%SOFTWARE%\ultradefrag\ultradefrag-%PKG_VERSION%.bin.i386.exe" />
<variable architecture="x64" name="EXE_PATH" value="%SOFTWARE%\ultradefrag\ultradefrag-%PKG_VERSION%.bin.amd64.exe" />
<check type="uninstall" condition="versiongreaterorequal" path="Ultra Defragmenter" value="%PKG_VERSION%" />
<install cmd='"%EXE_PATH%" /S /LANG="French (FR)"' />
<!-- Delete shortcuts -->
<!-- XP -->
<install cmd='%COMSPEC% /C del /q /f "%ALLUSERSPROFILE%\Bureau\UltraDefrag.lnk"'>
<exit code="any" />
</install>
<!-- Vista / 7 -->
<install cmd='%COMSPEC% /C del /q /f "%PUBLIC%\Desktop\UltraDefrag.lnk"'>
<exit code="any" />
</install>
<!-- Delete ContextMenu entries -->
<!--<install cmd='reg delete "HKCR\*\shell\udefrag" /f' />
<install cmd='reg delete "HKCR\Drive\shell\udefrag" /f' />
<install cmd='reg delete "HKCR\Folder\shell\udefrag" /f' />-->
<upgrade include="install" />
<downgrade include="install" />
<!-- <remove cmd='"%SystemRoot%\system32\bootexctrl.exe" /u defrag_native' /> -->
<remove cmd='"%SystemRoot%\UltraDefrag\uninstall.exe" /S' />
<!-- Uninstall returns immediatly, so just wait a few seconds for it to remove before checking the status again
Unfortunatly, WINDOWS has no sleep commands -->
<remove cmd='%COMSPEC% /C ping -n 10 127.0.0.1 1>NUL 2>NUL' >
<exit code="any" />
</remove>
</package>
</packages>