SOGo addons for Thunderbird 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.

47 lines
2.4 KiB

12 years ago
<?xml version="1.0" encoding="UTF-8"?>
<packages>
<package id="sogo-addons"
name="Addons SOGo"
10 years ago
revision="15"
12 years ago
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" />
<!-- le deploiement de config Thunderbird aussi est nécessaire -->
<depends package-id="thunderbird-config" />
12 years ago
<!-- Lightning aussi doit être installé -->
<depends package-id="lightning" />
10 years ago
<variable name="CONNECTOR_VERSION" value="24.0.5" />
<variable name="INTEGRATOR_VERSION" value="24.0.5" />
12 years ago
<variable architecture="x86" name="INSTALL_PATH" value="%PROGRAMFILES%\Mozilla Thunderbird\distribution\bundles" />
<variable architecture="x64" name="INSTALL_PATH" value="%PROGRAMFILES(x86)%\Mozilla Thunderbird\distribution\bundles" />
11 years ago
<check type="execute" path='%COMSPEC% /C type "%INSTALL_PATH%\sogo-connector\install.rdf" | find /I "em:version=" | find "%CONNECTOR_VERSION%"' condition="exitcodeequalto" value="0" />
<check type="execute" path='%COMSPEC% /C type "%INSTALL_PATH%\sogo-integrator\install.rdf" | find /I "em:version=" | find "%INTEGRATOR_VERSION%"' condition="exitcodeequalto" value="0" />
12 years ago
<install include="remove" />
<install cmd='%COMSPEC% /C if not exist "%INSTALL_PATH%\sogo-connector" mkdir "%INSTALL_PATH%\sogo-connector"' />
11 years ago
<install cmd='"%SOFTWARE%\7zip\unzip.bat" "%SOFTWARE%\thunderbird_addons\sogo-connector-%CONNECTOR_VERSION%.xpi" "%INSTALL_PATH%\sogo-connector"' />
12 years ago
<install cmd='%COMSPEC% /C if not exist "%INSTALL_PATH%\sogo-integrator" mkdir "%INSTALL_PATH%\sogo-integrator"' />
<install cmd='"%SOFTWARE%\7zip\unzip.bat" "%SOFTWARE%\thunderbird_addons\sogo-integrator.xpi" "%INSTALL_PATH%\sogo-integrator"' />
<upgrade include="install" />
<downgrade include="install" />
12 years ago
<remove cmd='taskkill /F /IM thunderbird.exe'>
<exit code="0" />
<exit code="128" />
</remove>
<remove cmd='%COMSPEC% /C if exist "%INSTALL_PATH%\sogo-connector" del /Q /F "%INSTALL_PATH%\sogo-connector"' />
<remove cmd='%COMSPEC% /C if exist "%INSTALL_PATH%\sogo-integrator" del /Q /F "%INSTALL_PATH%\sogo-integrator"' />
12 years ago
</package>
</packages>