Thunderbird's Download Ticket Service integration 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.

35 lines
1.4 KiB

11 years ago
<?xml version="1.0" encoding="UTF-8"?>
<packages>
<package id="filelink-dl"
name="FileLink DL Extension"
11 years ago
revision="2"
11 years ago
reboot="false"
priority="10">
<!-- 7zip est nécessaire pour extraire l'XPI -->
<depends package-id="7zip" />
<!-- Thunderbird est aussi nécessaires ;-) -->
<depends package-id="thunderbird-config" />
11 years ago
<variable name="PKG_VERSION" value="0.13" />
11 years ago
<variable architecture="x86" name="INSTALL_PATH" value="%PROGRAMFILES%\Mozilla Thunderbird\distribution\bundles\dl" />
<variable architecture="x64" name="INSTALL_PATH" value="%PROGRAMFILES(x86)%\Mozilla Thunderbird\distribution\bundles\dl" />
<check type="execute" path='%COMSPEC% /C type "%INSTALL_PATH%\install.rdf" | find /I "&lt;em:version&gt;%PKG_VERSION%"' condition="exitcodeequalto" value="0" />
<install include="remove" />
<install cmd='%COMSPEC% /C if not exist "%INSTALL_PATH%" mkdir "%INSTALL_PATH%"' />
<install cmd='"%SOFTWARE%\7zip\unzip.bat" "%SOFTWARE%\thunderbird_addons\thunderbird-filelink-dl-%PKG_VERSION%.xpi" "%INSTALL_PATH%"' />
<upgrade include="install" />
<remove cmd='taskkill /F /IM thunderbird.exe'>
<exit code="0" />
<exit code="128" />
</remove>
<remove cmd='%COMSPEC% /C if exist "%INSTALL_PATH%" del /Q /F "%INSTALL_PATH%"' />
</package>
</packages>