|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
|
|
|
|
<packages>
|
|
|
|
<package id="openattachmentbyextension"
|
|
|
|
name="Open Attachments By Extension"
|
|
|
|
revision="1"
|
|
|
|
reboot="false"
|
|
|
|
priority="10">
|
|
|
|
|
|
|
|
<!-- 7zip est nécessaire pour extraire l'XPI -->
|
|
|
|
<depends package-id="7zip" />
|
|
|
|
<!-- Et bien sur, Thunderbird aussi est nécessaire ;-) -->
|
|
|
|
<depends package-id="thunderbird" />
|
|
|
|
<depends package-id="thunderbird-config" />
|
|
|
|
<!-- SumatraPDF est nécessaire pour l'ouverture des fichiers -->
|
|
|
|
<depends package-id="sumatrapdf" />
|
|
|
|
|
|
|
|
<variable name="PKG_VERSION" value="0.3.5" />
|
|
|
|
<variable architecture="x86" name="INSTALL_PATH" value="%PROGRAMFILES%\Mozilla Thunderbird\distribution\bundles\openattachmentbyextension" />
|
|
|
|
<variable architecture="x64" name="INSTALL_PATH" value="%PROGRAMFILES(x86)%\Mozilla Thunderbird\distribution\bundles\openattachmentbyextension" />
|
|
|
|
|
|
|
|
<check type="execute" path='%COMSPEC% /C type "%INSTALL_PATH%\install.rdf" | find /I "<em:version>%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\OpenAttachmentByExtension-%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>
|
|
|
|
|