Difference between revisions of "Thunderbird"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
(Removing access to Outlook Express: move to its own page)
(Silent installation of Thunderbird extensions)
Line 185: Line 185:
 
* download the extension
 
* download the extension
 
* go to "%PROGRAMFILES%\Mozilla Thunderbird\extensions\" and see what folders you have there
 
* go to "%PROGRAMFILES%\Mozilla Thunderbird\extensions\" and see what folders you have there
* install the extension into Thunderbird manually (this needs an explanation as to how this is done - is it by copying the .XPI file into this directory? or using Tools -> Extensions -> Install from within Thunderbird?)
+
* install the extension into Thunderbird manually
* you will notice that the additional folder appeared in "%PROGRAMFILES%\Mozilla Thunderbird\extensions\" - this is your new extension
+
** It is best to do this using Tools -> Extensions -> Install from within Thunderbird. Then you can find the additional folder containing your extension in "%PROGRAMFILES%\Mozilla Thunderbird\extensions\".
 +
** Alternatively, you can use any unzip program to look inside the XPI file (which is just a zip file with the extension changed to XPI). However, you will not know which folder the XPI will extract to unless you look inside the install.rdf and look for id.
 
* copy the new folder to the server
 
* copy the new folder to the server
 
* the silent installer will look like this:
 
* the silent installer will look like this:

Revision as of 20:40, 6 September 2007

General info for version 2

"New Windows installer: Based on Nullsoft Scriptable Install System, the new Windows installer resolves many long-standing issues." http://www.mozilla.com/en-US/thunderbird/2.0.0.0/releasenotes/

Despite the change of installers, the -ms flag works instead of /s to do silent install.

For uninstall, you'll want:

<remove cmd='"%PROGRAMFILES%\Mozilla Thunderbird\uninstall\helper.exe" /S' />

General info for version 1.5

This is a silent installer and uninstaller for Mozilla Thunderbird 1.5, but it should work with other versions of Thunderbird, too.

If you have a lower version of Thunderbird installed, it will be automatically removed before Mozilla Thunderbird 1.5 installs.

As the Thunderbird install now nicely upgrades and doesn't leave the old one in the registry, there is no need to differentiate versions in package id. When a new version comes out, just replace the installer in "upgrade cmd" with a new one, and then increment the package revision number - this puts the upgrade command to work.

<package 
     id="thunderbird" 
     name="Mozilla Thunderbird" 
     revision="15041" 
     reboot="false" 
     priority="0">

 <check type="uninstall" condition="exists" path="Mozilla Thunderbird (1.5)" />

 <install cmd='"%SOFTWARE%\Thunderbird\Thunderbird Setup 1.5.0.4.exe" -ms' />

 <upgrade cmd='"%SOFTWARE%\Thunderbird\Thunderbird Setup 1.5.0.4.exe" -ms' />

 <remove cmd='"%PROGRAMFILES%\Mozilla Thunderbird\uninstall\uninstall.exe" -ms' />
</package>

Making Thunderbird a default mail and news client

If you want to make Mozilla Thunderbird a default mail and news client, add these registry entries:

Note: Make sure to change the path MOZILL~2 to MOZILL~1 if you have installed Thunderbird before Firefox or any other Mozilla product. (check on the command line by typing "cd %programfiles%\MOZILL~2")

REGEDIT4

[HKEY_CLASSES_ROOT\mailto]
@="URL:MailTo Protocol"
"URL Protocol"=""
[HKEY_CLASSES_ROOT\mailto\DefaultIcon]
@="@ShortProgFiles\\MOZILL~2\\THUNDE~1.EXE,0"
[HKEY_CLASSES_ROOT\mailto\shell\open\command]
@="@ShortProgFiles\\MOZILL~2\\THUNDE~1.EXE -compose %1"
[HKEY_CLASSES_ROOT\news]
@="URL:News Protocol"
"URL Protocol"=""
[HKEY_CLASSES_ROOT\news\DefaultIcon]
@="@ShortProgFiles\\MOZILL~2\\THUNDE~1.EXE,0"
[HKEY_CLASSES_ROOT\news\shell\open\command]
@="@ShortProgFiles\\MOZILL~2\\THUNDE~1.EXE -mail %1"
[HKEY_CLASSES_ROOT\nntp]
@="URL:NNTP Protocol"
"URL Protocol"=""
[HKEY_CLASSES_ROOT\nntp\DefaultIcon]
@="@ShortProgFiles\\MOZILL~2\\THUNDE~1.EXE,0"
[HKEY_CLASSES_ROOT\nntp\shell\open\command]
@="@ShortProgFiles\\MOZILL~2\\THUNDE~1.EXE -mail %1"
[HKEY_CLASSES_ROOT\snews]
@="URL:Snews Protocol"
"URL Protocol"=""
[HKEY_CLASSES_ROOT\snews\DefaultIcon]
@="@ShortProgFiles\\MOZILL~2\\THUNDE~1.EXE,0"
[HKEY_CLASSES_ROOT\snews\shell\open\command]
@="@ShortProgFiles\\MOZILL~2\\THUNDE~1.EXE -mail %1"
[HKEY_CURRENT_USER\Software\Clients\Mail]
@="Mozilla Thunderbird"
[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\Mail]
@="Mozilla Thunderbird"
[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\News]
@="Mozilla Thunderbird"


To register it with WPKG, save it as thunderbird.REG, and add these entries to your Thunderbird XML:

 <install cmd='regedit /s %SOFTWARE%\Thunderbird\thunderbird.REG' />
 
 <upgrade cmd='regedit /s %SOFTWARE%\Thunderbird\thunderbird.REG' />

Alternatively, you can use this jscript file to use full path names:

 var WshShell = WScript.CreateObject("WScript.Shell");
 var key;
 var value;
 
 key = "HKEY_CLASSES_ROOT\\mailto\\";
 value = "URL:MailTo Protocol";
 WshShell.RegWrite(key, value, "REG_SZ");
 
 key = "HKEY_CLASSES_ROOT\\mailto\\URL Protocol";
 value = "";
 WshShell.RegWrite(key, value, "REG_SZ");
 
 key = "HKEY_CLASSES_ROOT\\mailto\\defaultIcon\\";
 value = WshShell.ExpandEnvironmentStrings("%ProgramFiles%") + "\\Mozilla Thunderbird\Thunderbird.exe,0";
 WshShell.RegWrite(key, value, "REG_SZ");
 
 key = "HKEY_CLASSES_ROOT\\mailto\\shell\\open\\command\\";
 value = WshShell.ExpandEnvironmentStrings("%ProgramFiles%") + "\\Mozilla Thunderbird\\Thunderbird.exe -compose %1";
 WshShell.RegWrite(key, value, "REG_SZ");
 
 
 key = "HKEY_CLASSES_ROOT\\news\\";
 value = "URL:News Protocol";
 WshShell.RegWrite(key, value, "REG_SZ");
 
 key = "HKEY_CLASSES_ROOT\\news\\URL Protocol";
 value = "";
 WshShell.RegWrite(key, value, "REG_SZ");
 
 key = "HKEY_CLASSES_ROOT\\news\\defaultIcon\\";
 value = WshShell.ExpandEnvironmentStrings("%ProgramFiles%") + "\\Mozilla Thunderbird\Thunderbird.exe,0";
 WshShell.RegWrite(key, value, "REG_SZ");
 
 key = "HKEY_CLASSES_ROOT\\news\\shell\\open\\command\\";
 value = WshShell.ExpandEnvironmentStrings("%ProgramFiles%") + "\\Mozilla Thunderbird\\Thunderbird.exe -mail %1";
 WshShell.RegWrite(key, value, "REG_SZ");
 
 
 key = "HKEY_CLASSES_ROOT\\nntp\\";
 value = "URL:NNTP Protocol";
 WshShell.RegWrite(key, value, "REG_SZ");
 
 key = "HKEY_CLASSES_ROOT\\nntp\\URL Protocol";
 value = "";
 WshShell.RegWrite(key, value, "REG_SZ");
 
 key = "HKEY_CLASSES_ROOT\\nntp\\defaultIcon\\";
 value = WshShell.ExpandEnvironmentStrings("%ProgramFiles%") + "\\Mozilla Thunderbird\Thunderbird.exe,0";
 WshShell.RegWrite(key, value, "REG_SZ");
 
 key = "HKEY_CLASSES_ROOT\\nntp\\shell\\open\\command\\";
 value = WshShell.ExpandEnvironmentStrings("%ProgramFiles%") + "\\Mozilla Thunderbird\\Thunderbird.exe -mail %1";
 WshShell.RegWrite(key, value, "REG_SZ");
 
 
 key = "HKEY_CLASSES_ROOT\\snews\\";
 value = "URL:Snews Protocol";
 WshShell.RegWrite(key, value, "REG_SZ");
 
 key = "HKEY_CLASSES_ROOT\\snews\\URL Protocol";
 value = "";
 WshShell.RegWrite(key, value, "REG_SZ");
 
 key = "HKEY_CLASSES_ROOT\\snews\\defaultIcon\\";
 value = WshShell.ExpandEnvironmentStrings("%ProgramFiles%") + "\\Mozilla Thunderbird\Thunderbird.exe,0";
 WshShell.RegWrite(key, value, "REG_SZ");
 
 key = "HKEY_CLASSES_ROOT\\snews\\shell\\open\\command\\";
 value = WshShell.ExpandEnvironmentStrings("%ProgramFiles%") + "\\Mozilla Thunderbird\\Thunderbird.exe -mail %1";
 WshShell.RegWrite(key, value, "REG_SZ");
 
 
 key = "HKEY_CURRENT_USER\\Software\\Clients\\Mail\\";
 value = "Mozilla Thunderbird";
 WshShell.RegWrite(key, value, "REG_SZ");
 
 key = "HKEY_LOCAL_MACHINE\\SOFTWARE\\Clients\\Mail\\";
 value = "Mozilla Thunderbird";
 WshShell.RegWrite(key, value, "REG_SZ");
 
 key = "HKEY_LOCAL_MACHINE\\SOFTWARE\\Clients\\News\\";
 value = "Mozilla Thunderbird";
 WshShell.RegWrite(key, value, "REG_SZ");


For wpkg:

 <install cmd='wscript %SOFTWARE%\Thunderbird\setdefault.js' />
 <upgrade cmd='wscript %SOFTWARE%\Thunderbird\setdefault.js' />

Silent installation of Thunderbird extensions

To silently install Mozilla Thunderbird extensions, do the following:

  • download the extension
  • go to "%PROGRAMFILES%\Mozilla Thunderbird\extensions\" and see what folders you have there
  • install the extension into Thunderbird manually
    • It is best to do this using Tools -> Extensions -> Install from within Thunderbird. Then you can find the additional folder containing your extension in "%PROGRAMFILES%\Mozilla Thunderbird\extensions\".
    • Alternatively, you can use any unzip program to look inside the XPI file (which is just a zip file with the extension changed to XPI). However, you will not know which folder the XPI will extract to unless you look inside the install.rdf and look for id.
  • copy the new folder to the server
  • the silent installer will look like this:
<package
    id="thunderbird-quicktext"
    name="Quicktext extension"
    revision="1"
    reboot="false"
    priority="0">

   <check type="file" condition="exists" path="%PROGRAMFILES%\Mozilla Thunderbird\extensions\{8845E3B3-E8FB-40E2-95E9-EC40294818C4}\install.rdf" />

   <install cmd='cmd /C xcopy /Q /I /E /Y "%SOFTWARE%\thunderbird\extensions\quicktext\{8845E3B3-E8FB-40E2-95E9-EC40294818C4}" "%PROGRAMFILES%\Mozilla Thunderbird\extensions\{8845E3B3-E8FB-40E2-95E9-EC40294818C4}"' />

   <upgrade cmd='cmd /C xcopy /Q /I /E /Y "%SOFTWARE%\thunderbird\extensions\quicktext\{8845E3B3-E8FB-40E2-95E9-EC40294818C4}" "%PROGRAMFILES%\Mozilla Thunderbird\extensions\{8845E3B3-E8FB-40E2-95E9-EC40294818C4}"' />

   <remove cmd='cmd /C rmdir /S /Q "%PROGRAMFILES%\Mozilla Thunderbird\extensions\{8845E3B3-E8FB-40E2-95E9-EC40294818C4}"' />
</package>
  • Basically, it means you have to copy the folder named similar to {8845E3B3-E8FB-40E2-95E9-EC40294818C4} to your "%PROGRAMFILES%\Mozilla Thunderbird\extensions" folder
  • when Mozilla Thunderbird is next started, a new extension is detected automatically - you can verify this in Thunderbird using Tools -> Extensions

Silent installation of dictionaries (spell-checking)

Mozilla Thunderbird keeps its (MySpell) dictionaries in %PROGRAMFILES%\Mozilla Thunderbird\components\myspell\.

By default, it only has an English dictionary (for licensing reasons).

Installing a new dictionary is simple - just copy the dictionary files for a given language to that folder.

Installation instructions for a German dictionary

  • Download a German dictionary from http://www.thunderbird-mail.de/hilfe/dokumentation1.5/allg_rechtschreibung.php
  • The file is a .xpi file (a renamed .zip file). Uncompress it using any unzipping program. Inside you'll find .aff and .dic files - these are the core dictionary files. (There is also a .txt file (some info), and a .js file (the installer, used if you install the dictionary using Thunderbird))
  • Copy the core dictionary files into %PROGRAMFILES%\Mozilla Thunderbird\components\myspell\.
  • The XML which installs the German dictionary for Thunderbird should look like this:
<package
    id="thunderbird-woerterbuch"
    name="Woerterbuch fuer Thunderbird"
    revision="1"
    reboot="false"
    priority="0">

    <check type="file" condition="exists" path="%PROGRAMFILES%\Mozilla Thunderbird\components\myspell\Deutsch - neue Rechtschreibung.aff" />
    <check type="file" condition="exists" path="%PROGRAMFILES%\Mozilla Thunderbird\components\myspell\Deutsch - neue Rechtschreibung.dic" />
    <check type="file" condition="exists" path="%PROGRAMFILES%\Mozilla Thunderbird\components\myspell\Deutsch - neue Rechtschreibung.txt" />

    <install cmd='cmd /C xcopy /Q /I /E /Y "%SOFTWARE%\thunderbird\extensions\woerterbuch\*" "%PROGRAMFILES%\Mozilla Thunderbird\components\myspell\"' />

    <upgrade cmd='cmd /C xcopy /Q /I /E /Y "%SOFTWARE%\thunderbird\extensions\woerterbuch\*" "%PROGRAMFILES%\Mozilla Thunderbird\components\myspell\"' />

    <remove cmd='cmd /C del "%PROGRAMFILES%\Mozilla Thunderbird\components\myspell\Deutsch - neue Rechtschreibung.*"' />
</package>

Disable auto update

http://sourceforge.net/mailarchive/forum.php?thread_name=45E2C361.103%40kh-berlin.de&forum_name=wpkg-users

Removing access to Outlook Express

If you want to remove access to OE, see Outlook Express.