Vérification d'installation

tags/0.2
Daniel Berteaud 13 years ago
parent 6997f69e66
commit e866257687
  1. 9
      packages/thunderbird-config.xml

@ -2,21 +2,28 @@
<packages>
<package id="thunderbird-config"
name="Configuration Thunderbird"
revision="2"
revision="%PKG_VERSION%"
priority="10"
reboot="false">
<depends package-id="thunderbird" />
<variable name='PKG_VERSION' value='4' />
<variable architecture='x86' name='PROG' value='%PROGRAMFILES%\Mozilla Thunderbird' />
<variable architecture='x64' name='PROG' value='%PROGRAMFILES(x86)%\Mozilla Thunderbird' />
<variable architecture='x86' name='REG_PATH' value='HKLM\Software\Mozilla\Thunderbird' />
<variable architecture='x64' name='REG_PATH' value='HKLM\Software\Wow6432Node\Mozilla\Thunderbird' />
<check type="registry" condition="equals" path="%REG_PATH%\ConfigRevision" value="%PKG_VERSION%" />
<install cmd='%COMSPEC% /C copy /Y "%SOFTWARE%\thunderbird\autoconf.js" "%PROG%\defaults\pref\"' />
<install cmd='%COMSPEC% /C copy /Y "%SETTINGS%\thunderbird\thunderbird.cfg" "%PROG%\"' />
<install cmd='%COMSPEC% /C reg add "%REG_PATH%" /v "ConfigRevision" /t REG_SZ /d "%PKG_VERSION%" /f' />
<upgrade include="install" />
<remove cmd='%COMSPEC% /C del /F "%PROG%\defaults\pref\autoconf.js"' />
<remove cmd='%COMSPEC% /C del /F "%PROG%\thunderbird.cfg"' />
<remove cmd='%COMSPEC% /C reg delete "%REG_PATH%" /v "ConfigRevision" /f' />
</package>
</packages>

Loading…
Cancel
Save