4
edits
Changes
→Firefox 3 extensions: - workaround for disabled -install-global-extension switch
== Firefox 3 extensions ==
'''Note:''' With Firefox 3.6, the "-install-global-extension" command line switch has been disabled.
To install extensions globally:
Install the extension by hand, this will (for IETab) create a directory "{77b819fa-95ad-4f2c-ac7c-486b356188a9}" in your %userprofile%\Mozilla\Extensions. Copy this folder to a reasonable place within your %SOFTWARE% share. To install the application, you will have to xcopy or robocopy it to your "%PROGRAMFILES%\Mozilla Firefox\extensions" directory.
You will need to get robocopy or xcopy for this. xcopy comes with WinXP, Robocopy is part of the Windows Resource Kit. Copy the *copy.exe file to your %SOFTWARE%-share, a "tools"-folder might be a good place for that.
Don't be confused, the exit code "1" of robocopy means success! (don't ask me why...)
=== IETab with Firefox 3.6 ===
<source lang="xml">
<package id="firefox3-ext-ietab"
name="Firefox Extension IETab"
revision="1"
reboot="false"
priority="0">
<depends package-id="firefox3" />
<variable name='fxdir' value='{77b819fa-95ad-4f2c-ac7c-486b356188a9}' />
<check type="file" condition="exists" path="%PROGRAMFILES%\Mozilla Firefox\extensions\%FXDIR%\chrome.manifest" />
<install cmd='taskkill /F /IM firefox.exe'>
<exit code="0" />
<exit code="128" />
</install>
<install cmd='%COMSPEC% /C "%SOFTWARE%\Tools\robocopy.exe" /E "%SOFTWARE%\Internet\Firefox\Extensions\%FXDIR%" "%PROGRAMFILES(x86)%\Mozilla Firefox\extensions\%FXDIR%"'>
<exit code="0" />
<exit code="1" />
</install>
<install cmd='cmd /C copy /Y "%SETTINGS%\ietab.js" "%PROGRAMFILES%\Mozilla Firefox\extensions\%FXDIR%\defaults\preferences"' />
<install cmd='taskkill /F /IM firefox.exe'>
<exit code="0" />
<exit code="128" />
</install>
<upgrade cmd='taskkill /F /IM firefox.exe'>
<exit code="0" />
<exit code="128" />
</upgrade>
<upgrade cmd='cmd /c rmdir /q /s "%PROGRAMFILES%\Mozilla Firefox\extensions\%FXDIR%"' />
<upgrade cmd='%COMSPEC% /C "%SOFTWARE%\Tools\robocopy.exe" /E "%SOFTWARE%\Internet\Firefox\Extensions\%FXDIR%" "%PROGRAMFILES(x86)%\Mozilla Firefox\extensions\%FXDIR%"'>
<exit code="0" />
<exit code="1" />
</upgrade>
<upgrade cmd='cmd /C copy /Y "%SETTINGS%\ietab.js" "%PROGRAMFILES%\Mozilla Firefox\extensions\%FXDIR%\defaults\preferences"' />
<upgrade cmd='taskkill /F /IM firefox.exe'>
<exit code="0" />
<exit code="128" />
</upgrade>
<remove cmd='cmd /c rmdir /q /s "%PROGRAMFILES%\Mozilla Firefox\extensions\%FXDIR%"' />
</package>
</source>
=== IETab ===
</package>
</source>
== Firefox 2 series basic installation ==