Changes

Thunderbird

138 bytes added, 17:41, 23 April 2008
m
no edit summary
For uninstall, you'll want:
<presource lang="xml">
<remove cmd='"%PROGRAMFILES%\Mozilla Thunderbird\uninstall\helper.exe" /S' />
</presource
== General info for version 1.5 ==
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.
<source lang="xml"><package
id="thunderbird"
name="Mozilla Thunderbird"
<remove cmd='"%PROGRAMFILES%\Mozilla Thunderbird\uninstall\uninstall.exe" -ms' />
</package></source> 
== Making Thunderbird a default mail and news client ==
'''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] @<source lang="URL:MailTo Protocolreg"> "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"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"
</source>
To register it with WPKG, save it as thunderbird.REG, and add these entries to your Thunderbird XML:
<source lang="xml">
<install cmd='regedit /s %SOFTWARE%\Thunderbird\thunderbird.REG' />
<upgrade cmd='regedit /s %SOFTWARE%\Thunderbird\thunderbird.REG' />
</source>
 
Alternatively, you can use this jscript file to use full path names:
<source lang="js">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");</source> 
And then add this to your XML package definition:
For wpkg:<source lang="xml"> <install cmd='cscript %SOFTWARE%\Thunderbird\setdefault.js' /> <upgrade cmd='cscript %SOFTWARE%\Thunderbird\setdefault.js' /></source>
<install cmd='wscript %SOFTWARE%\Thunderbird\setdefault.js' />
<upgrade cmd='wscript %SOFTWARE%\Thunderbird\setdefault.js' />
== Silent installation of Thunderbird extensions ==
* the silent installer will look like this:
<source lang="xml"><package
id="thunderbird-quicktext"
name="Quicktext extension"
<remove cmd='cmd /C rmdir /S /Q "%PROGRAMFILES%\Mozilla Thunderbird\extensions\{8845E3B3-E8FB-40E2-95E9-EC40294818C4}"' />
</package></source> 
* 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
'''Version 1.5'''
== Silent installation of dictionaries (spell-checking) ==
 
'''Version 1.5'''
Mozilla Thunderbird keeps its (MySpell) dictionaries in <code>%PROGRAMFILES%\Mozilla Thunderbird\components\myspell\</code>.
* The XML which installs the German dictionary for Thunderbird should look like this:
<source lang="xml"><package
id="thunderbird-woerterbuch"
name="Woerterbuch fuer Thunderbird"
<remove cmd='cmd /C del "%PROGRAMFILES%\Mozilla Thunderbird\components\myspell\Deutsch - neue Rechtschreibung.*"' />
</package></source>
'''Version 2.0'''
thunderbird.exe -install-global-extension "x:\software\deutsches_w_ouml_rterbuch-1.0.1-fx+zm+tb.xpi"
 
== Disable auto update ==
''Note'' This won't work anymore (at least in 2.0.0.6), seems like a bug. It is already files as a bug here [https://bugzilla.mozilla.org/show_bug.cgi?id=395660]. Keep yourself updated on the bug page.
 
== Removing access to Outlook Express ==
If you want to remove access to OE, see [[Outlook Express]].
[[category:Silent Installers]]
== Using thunderbird autoconfig ==
Create a customized text file named thunderbird.cfg and put it in the thunderbird executable folder:
<source lang="dos">'%programfiles%\mozilla thunderbird\thunderbird.cfg'</source>
Edit %programfiles%\mozilla thunderbird\greprefs\all.js addding the following values:
<source lang="js"> pref("general.config.obscure_value", 0); pref("general.config.filename", "thunderbird.cfg");</source>
''Note: Byteshifting does not seem to be required with versions 1.5.* or 2.0.*''
Example thunderbird.cfg with automatically assigned values from ldap.
<presource lang="js">//put everything in a try/catch
try {
} catch(e) {
displayError("lockedPref", e);
}</presource>  [[category:Silent Installers]]