<span class="gD">Hello!<br><br>As </span><span class="gD">John Danks write, the XPI file should be extracted to folder named as UID</span> of extracted plugin and you should tune next settings of Thunderbird: <br><br><div style="margin-left:40px">
extensions.installDistroAddons true<br>extensions.enabledScopes 13<br>extensions.autoDisableScopes 2<br></div><br>This settings allow users to have not only global, but own extensions. Please, read <a href="https://developer.mozilla.org/en/Installing_extensions">https://developer.mozilla.org/en/Installing_extensions</a> and for details<br>
<br>Here is my approach: I use semi-automated scripts to extract naked XPI to deployment folder and then deploy all bulk of default extensions AND the CFG file for thunderbird. The deployment folder have structure:<br><br>
<div style="margin-left:40px"><b>thunderbird-deployment</b><b>/thunderbird.cfg</b> - for extensions paramaters<br><b>thunderbird-deployment</b><b>/defaults/pref/autoconf.js</b> - for enable thunderbird.cfg<br><b>thunderbird-deployment</b><b>/extensions/</b> - place for unpacked plugins<br>
</div><br>So, here is my script and examples of deployment folder with config files for Thunderbird: <a href="http://xpi2deploy.googlecode.com/files/xpi2deploy.tgz">http://xpi2deploy.googlecode.com/files/xpi2deploy.tgz</a><br>
<br>I run it like that (warning! -c option cleans destination folder!): <br><div style="margin-left:40px"># xpi2folders -c -g -i "<b>downloads/plugins</b>" -o "<b>thunderbird-deployment/extensions/</b>"<br>
</div><br>And here is my WPKG xml for extensions and config deployment:<br><br><blockquote style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><?xml version="1.0" encoding="UTF-8"?><br>
<br><packages:packages<br> xmlns:packages="<a href="http://www.wpkg.org/packages">http://www.wpkg.org/packages</a>" xmlns:wpkg="<a href="http://www.wpkg.org/wpkg">http://www.wpkg.org/wpkg</a>" xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</a>"<br>
xsi:schemaLocation="<a href="http://www.wpkg.org/packages">http://www.wpkg.org/packages</a> ../../xsd/packages.xsd" ><br><br> <package id="thunderbird-deployment"<br> name="Mozilla Thunderbird Deployment"<br>
revision="%PKG_VERSION%"<br> reboot="false"<br> execute="once"<br> priority="8"><br><br> <depends package-id="thunderbird" /><br>
<br> <variable name="PKG_VERSION" value="20120213-02" /><br> <variable name="PKG_NAME" value="Mozilla Thunderbird Deployment" /><br> <variable name="PKG_SOURCE" value="%SOFTWARE%\network\thunderbird-deployment"/><br>
<variable name="PKG_DESTINATION" value="%ProgramFiles%\Mozilla Thunderbird" architecture="x86"/><br> <variable name="PKG_DESTINATION" value="%ProgramFiles(x86)%\Mozilla Thunderbird" architecture="x64"/><br>
<br> <install include="remove" /><br> <install cmd='%ComSpec% /c xcopy "%PKG_SOURCE%\thunderbird.cfg" "%PKG_DESTINATION%\" /S /V /I /R /Y >"%TMP%\%PKG_NAME%.log"' /><br>
<install cmd='%ComSpec% /c xcopy "%PKG_SOURCE%\defaults" "%PKG_DESTINATION%\defaults" /S /V /I /R /Y >>"%TMP%\%PKG_NAME%.log"' /><br><br> <upgrade include="install" /><br>
<br> <remove cmd='%ComSpec% /c if exist "%PKG_DESTINATION%\thunderbird.cfg" del /q "%PKG_DESTINATION%\thunderbird.cfg"' /><br> <remove cmd='%ComSpec% /c if exist "%PKG_DESTINATION%\defaults" rmdir /s /q "%PKG_DESTINATION%\defaults"' /><br>
</package><br></blockquote><blockquote style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><div> </div></blockquote><div><blockquote style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">
<package id="thunderbird-extensions"<br> name="Mozilla Thunderbird Extensions"<br> revision="%PKG_VERSION%"<br> reboot="false"<br> priority="9"><br>
<br> <depends package-id="thunderbird" /><br><br> <variable name="PKG_VERSION" value="20120211-06" /><br> <variable name="PKG_NAME" value="Mozilla Thunderbird Extensions" /><br>
<variable name="PKG_SOURCE" value="%SOFTWARE%\network\thunderbird-deployment\extensions"/><br> <variable name="PKG_DESTINATION" value="%ProgramFiles%\Mozilla Thunderbird\extensions" architecture="x86"/><br>
<variable name="PKG_DESTINATION" value="%ProgramFiles(x86)%\Mozilla Thunderbird\extensions" architecture="x64"/><br> <variable name="PKG_VERFILE" value="%PKG_DESTINATION%\%PKG_VERSION%.ver" /><br>
<br> <check type="file" condition="exists" path="%PKG_VERFILE%" /><br><br> <install include="remove" /><br> <install cmd='%ComSpec% /c xcopy "%PKG_SOURCE%" "%PKG_DESTINATION%" /S /V /I /R /Y >"%TMP%\%PKG_NAME%.log"' /><br>
<br> <upgrade include="install" /><br><br> <remove cmd='%ComSpec% /c if exist "%PKG_DESTINATION%\" rmdir /s /q "%PKG_DESTINATION%\"' /><br> </package><br>
</blockquote><blockquote style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><div> </div></blockquote></div><blockquote style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">
</packages:packages><br></blockquote><br><br clear="all">-- <br>Best regards,<br>Kirill Kozlovskiy<br><br>