Changes
→Version 4 or later: (compacting)
To make sure, this is silent and to disable the warning request on startup to allow the installation, you have to set '''extensions.autoDisableScopes''' to '''11''' ([http://forums.mozillazine.org/viewtopic.php?p=11434583#p11434583 see this post])
Set '''extensions.shownSelectionUI''' to '''true''' to disable the addon control wizard, that comes up once when deploy an upgrade an start with an existing profile. (see below on autoconfig how to set [http://wpkg.org/Thunderbird#System-wide system wide user prefs])
<source lang="xml">
<?xml version="1.0" encoding="UTF-8"?>
<packages>
<package id="lightning" name="Lightning extension for Mozilla Thunderbird" revision="%version%" reboot="false" priority="20"> <variable name="version" value="1.2.1" /> <check type="file" condition="exists" path="%PROGRAMFILES%\Mozilla Thunderbird\extensions\{e2fda1a4-762b-4020-b5ad-a41df1933103}.xpi" /> <install cmd='cmd /C copy /Y "%SOFTWARE%\lightning\{e2fda1a4-762b-4020-b5ad-a41df1933103}.xpi" "%PROGRAMFILES%\Mozilla Thunderbird\extensions\{e2fda1a4-762b-4020-b5ad-a41df1933103}.xpi"' /> <upgrade cmd='cmd /C copy /Y "%SOFTWARE%\lightning\{e2fda1a4-762b-4020-b5ad-a41df1933103}.xpi" "%PROGRAMFILES%\Mozilla Thunderbird\extensions\{e2fda1a4-762b-4020-b5ad-a41df1933103}.xpi"' /> <remove cmd='cmd /C del /Y "%PROGRAMFILES\Mozilla Thunderbird\extensions\{e2fda1a4-762b-4020-b5ad-a41df1933103}.xpi"' /> </package>
</packages>
</source>