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

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
m
m
Line 12: Line 12:
 
</source>
 
</source>
  
and for lightning 0.8
+
and for lightning 0.9
  
 
<source lang="xml">
 
<source lang="xml">
Line 19: Line 19:
 
  <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'/>

Revision as of 03:33, 6 May 2009

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 cmd='"%PROGRAMFILES%\Mozilla Thunderbird\thunderbird.exe" -install-global-extension "%PACKAGES%\thunderbird_add-on\lightning-0.3.win32.xpi"' />
 <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?"'/>
</package>

and for lightning 0.9

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


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