Changes

Jump to: navigation, search

Mozilla Calendar/Lightning for Thunderbird (global)

225 bytes added, 05:21, 6 May 2009
Workaround for Don't Install Anything dialog.
== Mozilla Calendar/Lightning for Thunderbird (global) <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"' /> <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></source> and for lightning 0.9
<source lang="xml">
</source>
== 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 ==
117
edits

Navigation menu