3,217
edits
Changes
m
----== Making Thunderbird a default mail and news client ==
no edit summary
As the Thunderbird install now nicely upgrades and doesnt leave the old one into the registry, there is no need to differentiate versions in package id.
When a new version comes out, just replace every occurrence of 1.5 the installer in "upgrade cmd" with 1.5.1 (for example) a new one, and then increment the package revision number - this puts the upgrade command to work.
<package
id="thunderbird"
name="Mozilla Thunderbird 1.5.0.4"
revision="15041"
reboot="false"
<check type="uninstall" condition="exists" path="Mozilla Thunderbird (1.5)" />
<install cmd='"%SOFTWARE%\\server\wpkg\pkgThunderbird\Thunderbird Setup 1.5.0.4.exe" -ms' />
<upgrade cmd='"%SOFTWARE%\\server\wpkg\pkgThunderbird\Thunderbird Setup 1.5.0.4.exe" -ms' />
<remove cmd='"%PROGRAMFILES%\Mozilla Thunderbird\uninstall\uninstall.exe" -ms' />
If you want to make Mozilla Thunderbird a default mail and news client, add these registry entries: 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' /> == Silent installation of Thunderbird extensions.'''==
To silently install Mozilla Thunderbird extensions, do the following: