Difference between revisions of "Mozilla Calendar/Lightning for Thunderbird (global)"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
m (Installing with Thunderbird 3)
(Installing with Thunderbird 3)
Line 50: Line 50:
 
If you want to use Lightning with Thunderbird 3 download the international
 
If you want to use Lightning with Thunderbird 3 download the international
 
[http://releases.mozilla.org/pub/mozilla.org/calendar/lightning/releases/1.0b2rc3/win32/lightning.xpi beta release of Lightning]
 
[http://releases.mozilla.org/pub/mozilla.org/calendar/lightning/releases/1.0b2rc3/win32/lightning.xpi beta release of Lightning]
 +
 +
Note:
 +
-install-global-extension and -install-global-theme have been removed from Gecko 1.9.2 and upwards.
 +
 +
So the only way to install lightning as a global extension is to use xcopy
 +
 +
<source lang="xml">
 +
 +
<install cmd='cmd /C xcopy /Q /I /E /Y "%SOFTWARE%\thunderbird\extensions\{e2fda1a4-762b-4020-b5ad-a41df1933103}" "%PROGRAMFILES%\Mozilla Thunderbird\extensions\{e2fda1a4-762b-4020-b5ad-a41df1933103}"' />
 +
 +
<upgrade cmd='cmd /C xcopy /Q /I /E /Y "%SOFTWARE%\thunderbird\extensions\{e2fda1a4-762b-4020-b5ad-a41df1933103}" "%PROGRAMFILES%\Mozilla Thunderbird\extensions\{e2fda1a4-762b-4020-b5ad-a41df1933103}"' />
 +
 +
</source>
 +
 +
for further information see [[Thunderbird#Silent_installation_of_Thunderbird_extensions]]
  
 
== Installing X.509 certificates ==
 
== Installing X.509 certificates ==

Revision as of 15:07, 28 June 2010

Mozilla Calendar/Lightning for Thunderbird (global)

<package id="lightning" name="Mozilla Lightning" revision="1" reboot="false" priority="1" timeout="100">
 <depends package-id="thunderbird"/>
 <check type="file" condition="exists" path="%PROGRAMFILES%\Mozilla Thunderbird\extensions\{e2fda1a4-762b-4020-b5ad-a41df1933103}\install.rdf" />

 <install cmd='%comspec% /c copy "%SOFTWARE%\Thunderbird\lightning-0.9-tb-win.xpi" %TEMP%' />
 <install cmd='"%PROGRAMFILES%\Mozilla Thunderbird\thunderbird.exe" -install-global-extension "%TEMP%\lightning-0.9-tb-win.xpi"' />
 <install cmd='%comspec% /c del "%TEMP%lightning-0.9-tb-win.xpi"' />

 <upgrade cmd='%comspec% /c copy "%SOFTWARE%\Thunderbird\lightning-0.9-tb-win.xpi" %TEMP%' />
 <upgrade cmd='"%PROGRAMFILES%\Mozilla Thunderbird\thunderbird.exe" -install-global-extension "%TEMP%\lightning-0.9-tb-win.xpi"' />
 <upgrade cmd='%comspec% /c del "%TEMP%lightning-0.9-tb-win.xpi"' />

 <remove cmd='%comspec% /c del /S /Q "%PROGRAMFILES%\Mozilla Thunderbird\extensions\{e2fda1a4-762b-4020-b5ad-a41df1933103}" > nul'/>
</package>

Don't Import Anything

The first time Thunderbird is run as a particular user - including the Local System account - we get to see the useless "Don't Import Anything" dialog, which causes the lightning install via "-install-global-extension" to fail. We can work around this as follows:

  <install cmd='%comspec% /c copy "%SOFTWARE%\thunderbird\lightning-0.9-tb-win.xpi" %TEMP%' />
  <install timeout="10" cmd='"%PROGRAMFILES%\Mozilla Thunderbird\thunderbird.exe" -install-global-extension "%TEMP%\lightning-0.9-tb-win.xpi"' />
  <install cmd='ping 127.0.0.1 -n 10>NUL' />
  <install cmd='pskill /accepteula thunderbird.exe' >
   <exit code="0" />
   <exit code="-1" />
  </install>
  <install  cmd='"%PROGRAMFILES%\Mozilla Thunderbird\thunderbird.exe" -install-global-extension "%TEMP%\lightning-0.9-tb-win.xpi"' />
  <install cmd='%comspec% /c del "%TEMP%\lightning-0.9-tb-win.xpi"' />

Removing an extension

It looks like to remove an extension it is enough to remove that extension's files - in the above case, remove the whole %PROGRAMFILES%\Mozilla Thunderbird\extensions\{e2fda1a4-762b-4020-b5ad-a41df1933103} directory.


Installing since Firefox 2.0.0.7

The xpi file must reside on a local disk or on a network share (drive letter). It can't be installed from the network.


Installing with Thunderbird 3

Lightning 0.9 does not work with Thunderbird 3 If you want to use Lightning with Thunderbird 3 download the international beta release of Lightning

Note: -install-global-extension and -install-global-theme have been removed from Gecko 1.9.2 and upwards.

So the only way to install lightning as a global extension is to use xcopy

<install cmd='cmd /C xcopy /Q /I /E /Y "%SOFTWARE%\thunderbird\extensions\{e2fda1a4-762b-4020-b5ad-a41df1933103}" "%PROGRAMFILES%\Mozilla Thunderbird\extensions\{e2fda1a4-762b-4020-b5ad-a41df1933103}"' />
 
<upgrade cmd='cmd /C xcopy /Q /I /E /Y "%SOFTWARE%\thunderbird\extensions\{e2fda1a4-762b-4020-b5ad-a41df1933103}" "%PROGRAMFILES%\Mozilla Thunderbird\extensions\{e2fda1a4-762b-4020-b5ad-a41df1933103}"' />

for further information see Thunderbird#Silent_installation_of_Thunderbird_extensions

Installing X.509 certificates

With Mozilla's Network Security Services (NSS) it is also possible to install certificates from the command line. I am not sure if it fits in here since these are not managed per-machine but per-user (or per-profile). But if you are looking for a way to deploy a CA-cert you can use my batch script.