[wpkg-users] Firefox 8 and extension deployment

John Danks john.danks at gmail.com
Tue Dec 6 17:28:24 CET 2011


Did you extract the extension first? Some of them need that to work.

Are you using a 64-bit OS? You'll need to adjust paths. I'm using the
version on the wiki with a few small changes to handle both 32 and 64-bit.
Here's my entry for adblock+:

<package
id="firefox-adblock"
name="Adblock+"
revision="%version%-4"
priority="90">
 <variable name="version" value="1.3.10" />
<variable name="extid" value="{d10d0bf8-f5b5-c8b4-a8b2-2b9879e08c5d}" />
 <variable architecture="x86" name="progfiles" value="%PROGRAMFILES%" />
<variable architecture="x64" name="progfiles" value="%PROGRAMFILES(X86)%" />

<check
type="file"
condition="exists"
path="%progfiles%\Mozilla Firefox\extensions\%extid%\chrome.manifest" />
 <install cmd='%COMSPEC% /C xcopy /E /Y
"%SOFTWARE%\apps\firefox\adblock\%version%" "%progfiles%\Mozilla
Firefox\extensions\%extid%\"' />
<install cmd='%COMSPEC% /C reg add
"HKLM\Software\Mozilla\Firefox\Extensions" /v %extid% /d
"%progfiles%\Mozilla Firefox\extensions\%extid%" /f' />
 <upgrade cmd="taskkill /F /IM Firefox.exe">
<exit code="0" />
<exit code="128" />
</upgrade>
<upgrade cmd='%COMSPEC% /C if exist "%progfiles%\Mozilla
Firefox\extensions\%extid%" rmdir /q /s "%progfiles%\Mozilla
Firefox\extensions\%extid%"' />
<upgrade cmd='%COMSPEC% /C xcopy /E /Y
"%SOFTWARE%\apps\firefox\adblock\%version%" "%progfiles%\Mozilla
Firefox\extensions\%extid%\"' />
<upgrade cmd='%COMSPEC% /C reg add
"HKLM\Software\Mozilla\Firefox\Extensions" /v %extid% /d
"%progfiles%\Mozilla Firefox\extensions\%extid%" /f' />
 <remove cmd="taskkill /F /IM Firefox.exe">
<exit code="0" />
<exit code="128" />
</remove>
<remove cmd='%COMSPEC% /C if exist "%progfiles%\Mozilla
Firefox\extensions\%extid%" rmdir /q /s "%progfiles%\Mozilla
Firefox\extensions\%extid%"' />
<remove cmd='%COMSPEC% /C reg delete
"HKLM\Software\Mozilla\Firefox\Extensions" /v %extid% /f' />

</package>


On Tue, Dec 6, 2011 at 6:13 AM, chiddie <claudio.ghirardi at geniaware.com>wrote:

>
> Are you sure that Firefox 8 extensions deployment is the same as Firefox 4?
>
> I followed the instructions in the "Firefox 4 Series Extensions" section of
> the wpkg firefox page, but, even if after the installation i see the folder
> with the GUID number in the \firefox\extensions\ folder, and even if i see
> the registry key in the "HKLM\Software\Mozilla\Firefox\Extensions" path,
> when i launch the program and i go to see the extensions panel, it's empty.
>
> If i try to install the .xpi directly from the browser, it is indeed
> installed, but i have no idea about where the system put the addon files
> (surely not under \firefox\extensions\ and surely there's no
> "HKLM\Software\Mozilla\Firefox\Extensions" key added by the browser
> installation).
>
> Can anyone help me? The addon is "dizionario_italiano-3.3.1-tb+fx+sm.xpi".
>
> Thank you!
> --
> View this message in context:
> http://old.nabble.com/Firefox-8-and-extension-deployment-tp32924157p32924157.html
> Sent from the WPKG - Users mailing list archive at Nabble.com.
>
> -------------------------------------------------------------------------
> wpkg-users mailing list archives >>
> http://lists.wpkg.org/pipermail/wpkg-users/
> _______________________________________________
> wpkg-users mailing list
> wpkg-users at lists.wpkg.org
> http://lists.wpkg.org/mailman/listinfo/wpkg-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wpkg.org/pipermail/wpkg-users/attachments/20111206/ef369a29/attachment-0002.html>


More information about the wpkg-users mailing list