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

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
(install certificates from command line)
(Lightning 1.0 Beta 2 for Thunderbird 3.1)
 
(10 intermediate revisions by 5 users not shown)
Line 1: Line 1:
Mozilla Calendar/Lightning for Thunderbird (global)
+
Lightning is a calendar extension for Mozilla Thunderbird available from http://www.mozilla.org/projects/calendar/lightning/.
 +
 
 +
For information on installing Thunderbird extensions see also [[Thunderbird#Silent_installation_of_Thunderbird_extensions]].
 +
 
 +
==WPKG Installer==
 +
 
 +
===Lightning 1.0 Beta 2 for Thunderbird 3.1===
 +
 
 +
Lightning 1.0 Beta 2 is only compatible with Thunderbird 3.1.
 +
 
 +
Note: -install-global-extension and -install-global-theme have been removed from Thunderbird 3 / Gecko 1.9.2 and upwards. The way to install Lightning as a global extension is to use xcopy:
  
 
<source lang="xml">
 
<source lang="xml">
<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 cmd='"%PROGRAMFILES%\Mozilla Thunderbird\thunderbird.exe" -install-global-extension "%PACKAGES%\thunderbird_add-on\lightning-0.3.win32.xpi"' />
+
<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='"%PROGRAMFILES%\Mozilla Thunderbird\thunderbird.exe" -install-global-extension "%PACKAGES%\thunderbird_add-on\lightning-0.3.win32.xpi"' />
+
   
<remove cmd='cmd /c echo "How uninstall ONLY add-on?"'/>
+
<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}"' />
</package>
+
 
 
</source>
 
</source>
  
and for lightning 0.8
+
The XPI file must reside on a local disk or on a network share (drive letter), it can't be installed from a UNC path with xcopy.
 +
 
 +
If you are using Windows 7/2008 and want to install from a UNC path, [http://en.wikipedia.org/wiki/Robocopy robocopy] is your tool of choiche:
 +
 
 +
<source lang="xml">
 +
 
 +
<install cmd='cmd /c robocopy "%SOFTWARE%\thunderbird\extensions\{e2fda1a4-762b-4020-b5ad-a41df1933103}" "%PROGRAMFILES%\Mozilla Thunderbird\extensions\{e2fda1a4-762b-4020-b5ad-a41df1933103}" *.* /e'>
 +
  <exit code="0" />
 +
  <exit code="1" />
 +
  <exit code="2" />
 +
  <exit code="3" />
 +
</install>
 +
 
 +
<upgrade cmd='cmd /c robocopy "%SOFTWARE%\thunderbird\extensions\{e2fda1a4-762b-4020-b5ad-a41df1933103}" "%PROGRAMFILES%\Mozilla Thunderbird\extensions\{e2fda1a4-762b-4020-b5ad-a41df1933103}" *.* /e'>
 +
  <exit code="0" />
 +
  <exit code="1" />
 +
  <exit code="2" />
 +
  <exit code="3" />
 +
</upgrade>
 +
 
 +
<remove cmd='cmd /c rmdir /s /q "%PROGRAMFILES%\Mozilla Thunderbird\extensions\{e2fda1a4-762b-4020-b5ad-a41df1933103}"' />
 +
 
 +
</source>
 +
 
 +
===Lightning 1.0 Beta 1 for Thunderbird 3.0===
 +
 
 +
Lightning 1.0 Beta 1 is only compatible with Thunderbird 3.0.
 +
 
 +
Note: -install-global-extension and -install-global-theme have been removed from Thunderbird 3 / Gecko 1.9.2 and upwards. The 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>
 +
 
 +
The XPI file must reside on a local disk or on a network share (drive letter), it can't be installed from a UNC path.
 +
 
 +
 
 +
 
 +
===Lightning 0.9 for Thunderbird 2===
  
 
<source lang="xml">
 
<source lang="xml">
Line 19: Line 68:
 
  <check type="file" condition="exists" path="%PROGRAMFILES%\Mozilla Thunderbird\extensions\{e2fda1a4-762b-4020-b5ad-a41df1933103}\install.rdf" />
 
  <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.8-tb-win.xpi" %TEMP%' />
+
  <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.8-tb-win.xpi"' />
+
  <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.8-tb-win.xpi"' />
+
  <install cmd='%comspec% /c del "%TEMP%lightning-0.9-tb-win.xpi"' />
  
  <upgrade cmd='%comspec% /c copy "%SOFTWARE%\Thunderbird\lightning-0.8-tb-win.xpi" %TEMP%' />
+
  <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.8-tb-win.xpi"' />
+
  <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.8-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'/>
 
  <remove cmd='%comspec% /c del /S /Q "%PROGRAMFILES%\Mozilla Thunderbird\extensions\{e2fda1a4-762b-4020-b5ad-a41df1933103}" > nul'/>
 
</package>
 
</package>
 
</source>
 
</source>
== 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 <code>%PROGRAMFILES%\Mozilla Thunderbird\extensions\{e2fda1a4-762b-4020-b5ad-a41df1933103}</code> directory.
+
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 a UNC path.
  
  
== Installing since Firefox 2.0.0.7 ==
+
====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:
 +
 
 +
<source lang="xml">
 +
  <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"' />
 +
</source>
 +
 
 +
==Removing an extension==
 +
 
 +
To remove an extension, just remove the whole <code>%PROGRAMFILES%\Mozilla Thunderbird\extensions\{e2fda1a4-762b-4020-b5ad-a41df1933103}</code> directory.
  
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 X.509 certificates ==
 
== 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 [http://mschuette.name/wp/2008/06/09/mozilla-x509-certificates-from-the-command-line/ my batch script].
+
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). See [http://mschuette.name/wp/2008/06/09/mozilla-x509-certificates-from-the-command-line/ my batch script].
  
  
 
[[category:Silent Installers|Mozilla Calendar/Lightning for Thunderbird (global)]]
 
[[category:Silent Installers|Mozilla Calendar/Lightning for Thunderbird (global)]]

Latest revision as of 10:37, 30 July 2010

Lightning is a calendar extension for Mozilla Thunderbird available from http://www.mozilla.org/projects/calendar/lightning/.

For information on installing Thunderbird extensions see also Thunderbird#Silent_installation_of_Thunderbird_extensions.

WPKG Installer

Lightning 1.0 Beta 2 for Thunderbird 3.1

Lightning 1.0 Beta 2 is only compatible with Thunderbird 3.1.

Note: -install-global-extension and -install-global-theme have been removed from Thunderbird 3 / Gecko 1.9.2 and upwards. The 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}"' />

The XPI file must reside on a local disk or on a network share (drive letter), it can't be installed from a UNC path with xcopy.

If you are using Windows 7/2008 and want to install from a UNC path, robocopy is your tool of choiche:

<install cmd='cmd /c robocopy "%SOFTWARE%\thunderbird\extensions\{e2fda1a4-762b-4020-b5ad-a41df1933103}" "%PROGRAMFILES%\Mozilla Thunderbird\extensions\{e2fda1a4-762b-4020-b5ad-a41df1933103}" *.* /e'>
   <exit code="0" />
   <exit code="1" />
   <exit code="2" />
   <exit code="3" />
</install>

<upgrade cmd='cmd /c robocopy "%SOFTWARE%\thunderbird\extensions\{e2fda1a4-762b-4020-b5ad-a41df1933103}" "%PROGRAMFILES%\Mozilla Thunderbird\extensions\{e2fda1a4-762b-4020-b5ad-a41df1933103}" *.* /e'>
   <exit code="0" />
   <exit code="1" />
   <exit code="2" />
   <exit code="3" />
</upgrade>

<remove cmd='cmd /c rmdir /s /q "%PROGRAMFILES%\Mozilla Thunderbird\extensions\{e2fda1a4-762b-4020-b5ad-a41df1933103}"' />

Lightning 1.0 Beta 1 for Thunderbird 3.0

Lightning 1.0 Beta 1 is only compatible with Thunderbird 3.0.

Note: -install-global-extension and -install-global-theme have been removed from Thunderbird 3 / Gecko 1.9.2 and upwards. The 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}"' />

The XPI file must reside on a local disk or on a network share (drive letter), it can't be installed from a UNC path.


Lightning 0.9 for Thunderbird 2

<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>

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 a UNC path.


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

To remove an extension, just remove the whole %PROGRAMFILES%\Mozilla Thunderbird\extensions\{e2fda1a4-762b-4020-b5ad-a41df1933103} directory.


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). See my batch script.