MSFN Forum: Firefox Extensions - MSFN Forum

Jump to content



Unattended CD/DVD Guide Homepage · MSFN Forum Rules

Welcome to the Applications Installs forum. Make sure you read the forum rules before you start posting.

Links/Requests to warez and/or any illegal material (porn, cracks, serials, etc..) will not be tolerated. Discussion of circumventing WGA/activation/timebombs/keygens or any other illegal activity will also not be tolerated.

We try our best to keep this forum clean of illegal content. If you see any illegal activity use the "report" button you find in every post to report the specific post to the moderators. If you ignore any of the rules you will be banned without notice.

Read Forum Rules
  • 3 Pages +
  • 1
  • 2
  • 3
  • You cannot start a new topic
  • You cannot reply to this topic

Firefox Extensions Rate Topic: -----

#21 User is offline   Diabolical82 

  • Member
  • PipPip
  • Group: Members
  • Posts: 145
  • Joined: 22-June 04

Posted 02 October 2004 - 02:23 PM

crahak, on Sep 29 2004, 10:49 PM, said:

I don't know why you guys have to make such a simple thing so complex (especially AutoIt that could go very wrong)...

"%programfiles%\Mozilla Firefox\firefox.exe" -install-global-extension "%CDROM%\install\firefox addons\xpi\whatever.xpi"

works fine for me, or use something like
for %%i in *.xpi do "%programfiles%\Mozilla Firefox\firefox.exe" -install-global-extension "%CDROM%\install\firefox addons\xpi\%%i.xpi"

or something similar (with proper paths). Nothing to copy, nothing fancy. It works on every plugin I've tried. Want to add/remove plugins? Just toss them with the others... It just doesn't get simpler than that.


crahak's method is on this first page, anyway I'll quote what he post

But I changed it according to my need.

for %%i in *.xpi do "%PROGRAMFILES%\Mozilla Firefox\firefox.exe" -install-global-extension "%DVDROM%\Applications\Firefox\xpi\%%i.xpi"



#22 User is offline   1chaoticadult 

  • A Part of a Dying Breed...
  • PipPipPipPip
  • Group: Members
  • Posts: 669
  • Joined: 31-August 03

Posted 02 October 2004 - 08:13 PM

crahak I tried your method it worked fine for me. Great job.

#23 User is offline   CoffeeFiend 

  • Coffee Aficionado
  • Group: Super Moderator
  • Posts: 5,034
  • Joined: 14-July 04
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 02 October 2004 - 11:23 PM

@drthawhizkid you're welcome, it's really nothing at all...

@Nologic (if you're still reading this)

Yes, it is about AutoIt, but not feelings. Things DO happen to go wrong with it every now and then. As for the hang, it's not a coder experience issue (I code for a living...) but a CloneCD isntaller glitch in this case that caused it (unless you can write a script that can handle all unexpected errors that never occured before). I just came across another one that needs and extra tab *sometimes* (not on all PCs) go figure... I find AutoIt nice so you can automate things that are sometimes a mess to repack, and it can select every options you want in the setup (most unattended methods install with default options only). But AutoIt errors do happen.

As for my syntax, I don't know why you still say it's broken. You're the first and only report I get of it not working. It's worked very reliably on my home PCs, my friends' PCs and even PCs at work. (No delay required or implemented in any way whatsoever either - and I use long file names all the time) I just can't see it as "broken" (close to 100 PCs now and no errors yet, on 2K Pro and XP Pro mostly, just about any hw config, and no probs encountered yet)

As for the leaving, well, I understand your position. It's your decision and something I cannot do a thing about. Sorry to see you go away, hopefully things get better for you...

#24 User is offline   Diabolical82 

  • Member
  • PipPip
  • Group: Members
  • Posts: 145
  • Joined: 22-June 04

Posted 03 October 2004 - 03:11 PM

Crahak... it work great in batch, but I can't seem to get it working under RunOnceEx. Any idea? If you could post your example from batch or runonceex that'll be great.

#25 User is offline   tjhart85 

  • Member
  • PipPip
  • Group: Members
  • Posts: 193
  • Joined: 14-September 04

Posted 03 October 2004 - 04:18 PM

I have had experience with NOLOGIC before. We worked together to create an AUTOIT script that would install extentions and plugins and such. When I say we worked together, I mean I created an initial script, then he disasembled it and created a script 10 thousand times better than the original I had created. In the script he made he actually shared credit with me which I thought was really cool since I hadn't really done too much.

The reason he may not like the way things are done in the command line as suggested here is that his script COMPLETELY customizes the installation to be the exact way that he wants it, which just can't be done in the command line.


Personally I do not have nearly as many customizations as he does, so I may consider giving this method a try. :)

#26 User is offline   tjhart85 

  • Member
  • PipPip
  • Group: Members
  • Posts: 193
  • Joined: 14-September 04

Posted 03 October 2004 - 04:23 PM

I was also curious, this method:

for %%i in *.xpi do "%PROGRAMFILES%\Mozilla Firefox\firefox.exe" -install-global-extension "%DVDROM%\Applications\Firefox\xpi\%%i.xpi"


will it install all the extentions in the XPI folder? I don't have much experience with programming in DOS and using variables, but I have experience in C++.

It seems that the FOR loop cycles through everything in the XPI folder that has *.xpi, and then calls the install global extention, and proceeds to install it.

Is this correct? Before I go and try something other than my AUTOIT script which works, but takes a while, I would like to make sure that I understand what this command is doing.

#27 User is offline   CoffeeFiend 

  • Coffee Aficionado
  • Group: Super Moderator
  • Posts: 5,034
  • Joined: 14-July 04
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 03 October 2004 - 04:39 PM

tjhart85, on Oct 3 2004, 04:23 PM, said:

will it install all the extentions in the XPI folder?  I don't have much experience with programming in DOS and using variables, but I have experience in C++. 

It seems that the FOR loop cycles through everything in the XPI folder that has *.xpi, and then calls the install global extention, and proceeds to install it. 

Is this correct?  Before I go and try something other than my AUTOIT script which works, but takes a while, I would like to make sure that I understand what this command is doing.

Yes, that's exactly what it does. Find them and let firefox install them the way they should be (firefox does the installing)

@Diabolical82
Honestly, I don't know. I don't like RunOnceEx (it couldn't do what my main install script does anyways) but I'd try putting these command lines in a .bat or .cmd and starting that batch from it? (I'm a GUIRunOnce fan)

#28 User is offline   Diabolical82 

  • Member
  • PipPip
  • Group: Members
  • Posts: 145
  • Joined: 22-June 04

Posted 03 October 2004 - 06:58 PM

The one i'm using, you know long grey square box with listing of apps. Dunno maybe it's simple syntax mistake I'm not sure anyway.

that's what mine look like

Quote

REG ADD %KEY%\050 /VE /D "Installing Firefox 1.0PR" /f
REG ADD %KEY%\050 /V 1 /D "%DVDROM%\Applications\Firefox\Setup.exe -ms -ira" /f
REG ADD %KEY%\050 /V 2 /D  "for %%i in *.xpi do "%PROGRAMFILES%\Mozilla Firefox\firefox.exe" -install-global-extension "%DVDROM%\Applications\Firefox\xpi\%%i.xpi"/f


See anything wrong with it?

#29 User is offline   kyuuzo 

  • Junior
  • Pip
  • Group: Members
  • Posts: 64
  • Joined: 26-August 04

Posted 03 October 2004 - 09:27 PM

Diabolical82, on Oct 3 2004, 06:58 PM, said:

Quote

REG ADD %KEY%\050 /VE /D "Installing Firefox 1.0PR" /f
REG ADD %KEY%\050 /V 1 /D "%DVDROM%\Applications\Firefox\Setup.exe -ms -ira" /f
REG ADD %KEY%\050 /V 2 /D  "for %%i in *.xpi do "%PROGRAMFILES%\Mozilla Firefox\firefox.exe" -install-global-extension "%DVDROM%\Applications\Firefox\xpi\%%i.xpi"/f


See anything wrong with it?

Why not just save this as a batch file and call the batch file from RunOnceEx?

#30 User is offline   tjhart85 

  • Member
  • PipPip
  • Group: Members
  • Posts: 193
  • Joined: 14-September 04

Posted 03 October 2004 - 10:58 PM

Quote

crahak:
Yes, that's exactly what it does. Find them and let firefox install them the way they should be (firefox does the installing)


Awesome! I personally prefer this method since it will most likely stay the same reguardless of upgrades to Firefox (even if some of the extentions no longer will work, the method can stay the same)

#31 User is offline   prathapml 

  • Follow the rules please :-)
  • Group: Patrons
  • Posts: 6,791
  • Joined: 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 03 October 2004 - 11:22 PM

Diabolical82, on Oct 4 2004, 06:28 AM, said:

The one i'm using, you know long grey square box with listing of apps. Dunno maybe it's simple syntax mistake I'm not sure anyway.

See anything wrong with it?
@Diabolical,
No probs, you can stick with runonce if you don't like the other methods. The docu for RunOnceEX method says it all.... You can't use (") quotes in the command that you run. If you DO want quotes, you need to pre-fix a back-slash (that is : " = \"). As an example, your corrected code (the corrected line alone) would be:
REG ADD %KEY%\050 /V 2 /D  "for %%i in *.xpi do \"%PROGRAMFILES%\Mozilla Firefox\firefox.exe\" -install-global-extension \"%DVDROM%\Applications\Firefox\xpi\%%i.xpi\""/f
(all of the above is one line, though the page-rendering is breaking it to 3 lines; and yes, you read it right, the double-double quotes at the end of the line, since the command wasn't closed without that)
That should (hopefully) work. :thumbup Do tell how it goes.

#32 User is offline   Diabolical82 

  • Member
  • PipPip
  • Group: Members
  • Posts: 145
  • Joined: 22-June 04

Posted 04 October 2004 - 01:18 AM

Humm that's something new for me. Thanks i'll give it a try

#33 User is offline   jdoe 

  • Advanced Member
  • PipPipPip
  • Group: Banned
  • Posts: 314
  • Joined: 02-May 04

Posted 04 October 2004 - 01:46 AM

@prathapml
@Diabolical82

REG ADD %KEY%\050 /V 2 /D  "for %%i in *.xpi do \"%PROGRAMFILES%\Mozilla Firefox\firefox.exe\" -install-global-extension \"%DVDROM%\Applications\Firefox\xpi\%%i.xpi\""/f


The code above won't work because FOR is an internal command of CMD.EXE
You need to add something like CMD.EXE /C before using FOR command

It should look like this (not tested)

REG ADD %KEY%\050 /v 2 /d "CMD.EXE /C FOR %%I IN (*.xpi) DO \"%PROGRAMFILES%\Mozilla Firefox\firefox.exe\" -install-global-extension \"%DVDROM%\Applications\Firefox\xpi\%%I.xpi\"" /f



EDIT:
And %%I need to be %I because this command is not run in a batch file

EDIT2:
There is another error at the end with %%I.xpi

NEW CORRECTION
REG ADD %KEY%\050 /v 2 /d "CMD.EXE /C FOR %I IN (*.xpi) DO \"%PROGRAMFILES%\Mozilla Firefox\firefox.exe\" -install-global-extension \"%DVDROM%\Applications\Firefox\xpi\%I\"" /f


#34 User is offline   prathapml 

  • Follow the rules please :-)
  • Group: Patrons
  • Posts: 6,791
  • Joined: 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 04 October 2004 - 05:36 PM

@jdoe
Thanks for those things setting it right. Let's hope it works for diabolical. PHEW!!!! any more corrections? :P lol

Now here's another... you need to have commands run through the CMD interpreter in quotes as well, like:
CMD.exe /C "whatever command /blah-blah"
So, after YET another correction, the code stands at:
REG ADD %KEY%\050 /v 2 /d "CMD.EXE /C \"FOR %I IN (*.xpi) DO \"%PROGRAMFILES%\Mozilla Firefox\firefox.exe\" -install-global-extension \"%DVDROM%\Applications\Firefox\xpi\%I\"\"" /f

diabolical, we're waiting to hear whether this was successful or not.

#35 User is offline   Diabolical82 

  • Member
  • PipPip
  • Group: Members
  • Posts: 145
  • Joined: 22-June 04

Posted 04 October 2004 - 08:21 PM

It passed thru without error, unfortunate none of extensions is installed. :(

#36 User is offline   prathapml 

  • Follow the rules please :-)
  • Group: Patrons
  • Posts: 6,791
  • Joined: 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 04 October 2004 - 08:45 PM

Okay then....
Let's forget the FOR loops and do it the normal way:
REG ADD %KEY%\050 /v 2 /d "\"%PROGRAMFILES%\Mozilla Firefox\firefox.exe\" -install-global-extension %DVDROM%\Applications\Firefox\xpi\file1-name.xpi" /f

REG ADD %KEY%\050 /v 3 /d "\"%PROGRAMFILES%\Mozilla Firefox\firefox.exe\" -install-global-extension %DVDROM%\Applications\Firefox\xpi\file2-name.xpi" /f


REG ADD %KEY%\050 /v 4 /d "\"%PROGRAMFILES%\Mozilla Firefox\firefox.exe\" -install-global-extension %DVDROM%\Applications\Firefox\xpi\file3-name.xpi" /f


REG ADD %KEY%\050 /v 5 /d "\"%PROGRAMFILES%\Mozilla Firefox\firefox.exe\" -install-global-extension %DVDROM%\Applications\Firefox\xpi\file4-name.xpi" /f
It will still be fast enough. Just that it will take a few seconds more to type it in for all of the plug-ins. (and note that in the above example, the .XPI's should be renamed if they have spaces in the filename)

#37 User is offline   Diabolical82 

  • Member
  • PipPip
  • Group: Members
  • Posts: 145
  • Joined: 22-June 04

Posted 05 October 2004 - 03:09 AM

First extension will be install, but there's a pop up windows asking me if I want to import bookmark and settings. Wow, Firefox is costing me arms and legs already....

#38 User is offline   CoffeeFiend 

  • Coffee Aficionado
  • Group: Super Moderator
  • Posts: 5,034
  • Joined: 14-July 04
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 05 October 2004 - 04:12 AM

Diabolical82, on Oct 5 2004, 03:09 AM, said:

First extension will be install, but there's a pop up windows asking me if I want to import bookmark and settings. Wow, Firefox is costing me arms and legs already....

Perhaps we install firefox different ways... ?

#39 User is offline   syntax_13 

  • Newbie
  • Group: Members
  • Posts: 27
  • Joined: 31-August 03

Posted 05 October 2004 - 04:29 AM

About the not installing xpi part...

When running CMD.EXE, using (*.xpi) assumes you are already in the right directory. This is most likely not the case.
So the command should be changed to scan the correct folder for xpi's.
Maybe somthing like (c:\install\firefox\xpi\*.xpi).

#40 User is offline   Diabolical82 

  • Member
  • PipPip
  • Group: Members
  • Posts: 145
  • Joined: 22-June 04

Posted 05 October 2004 - 10:25 AM

@crahak
I install my firefox by editing config.ini and swap setup.exe from mozilla

Share this topic:


  • 3 Pages +
  • 1
  • 2
  • 3
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy