[wpkg-users] Firefox addon question

Donny Brooks dbrooks at mdah.state.ms.us
Tue Oct 16 22:44:52 CEST 2012


 
 
 
On Tuesday, October 16, 2012 02:59 PM CDT, Stefan Pendl <stefan.pendl.71 at gmail.com> wrote: 
 
> Am 16.10.2012 21:51, schrieb Donny Brooks:
> >
> >    <install cmd='%COMSPEC% /C xcopy /E /Y "%SOFTWARE%\firefox\adblock\%VERSION%" "%INSTALL_PATH%\extensions\%EXTID%\"' />
> 
> Starting with Firefox 4 only some extensions need to be extracted, which 
> in my case are just the dictionaries.
> 
> I just copy the XPI file of AdBlockPlus over to the extension folder and 
> I am done.
> 
> <package id="AdblockPlus" name="Firefox Extension - Adblock Plus" 
> revision="%PKG_VER%" reboot="false" priority="10">
>      <depends package-id="Firefox"/>
> 
>      <variable name="PKG_NAME" value="AdblockPlus" />
>      <variable name="PKG_VER"  value="2.1.2"/>
>      <variable name="PKG_SIZE" value="741958" />
>      <variable name="PKG_SRC"  value="%SOFTWARE%\Mozilla 
> Add-ons\adblock_plus-%PKG_VER%-sm+an+fx+tb.xpi" />
>      <variable name="PKG_DST"  value="%ProgramFiles%\Mozilla 
> Firefox\extensions"      architecture="x86" />
>      <variable name="PKG_DST"  value="%ProgramFiles(x86)%\Mozilla 
> Firefox\extensions" architecture="x64" />
>      <variable name="PKG_FILE" 
> value="{d10d0bf8-f5b5-c8b4-a8b2-2b9879e08c5d}.xpi" />
> 
>      <check type="file" condition="sizeequals" 
> path="%PKG_DST%\%PKG_FILE%" value="%PKG_SIZE%" />
> 
>      <install cmd='%ComSpec% /c copy /V /Y /B "%PKG_SRC%" 
> "%PKG_DST%\%PKG_FILE%" >"%TMP%\%PKG_NAME%.log"' />
> 
>      <upgrade include="install" />
>      <downgrade include="install" />
> 
>      <remove cmd='%ComSpec% /c del /f /q "%PKG_DST%\%PKG_FILE%"' />
> </package>
> 
> 
> 
> --
> Stefan P.
> 
> Top-posting:
> A: Because it messes up the order in which people normally read text.
> Q: Why is top-posting such a bad thing?
> A: Top-posting.
> Q: What is the most annoying thing in e-mail?
> -------------------------------------------------------------------------
> 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
 

That is the one thing I hadn't tried recently, naming the xpi as the extention ID.xpi. That worked just beautifully. Thanks!
-- 

Donny B. 




More information about the wpkg-users mailing list