MSFN Forum: Firefox installer that contains 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
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Firefox installer that contains extensions Rate Topic: -----

#1 User is offline   CHANDER 

  • Junior
  • Pip
  • Group: Members
  • Posts: 63
  • Joined: 19-January 05

Posted 22 January 2005 - 11:38 PM

Hi, I'm using Simonsay's silent Firefox installer and I downloaded the extensions/themes that I wanted and was calling them from a second entry in WPI but then I tried to get fancy and include them in the silent installer.

I changed the installers setup path to setup.cmd (code below) hoping that this would install firefox, and then procede to install my extensions automatically.

Needless to say it didnt work, otherwise I wouldnt be posting this...

It gives me an error that it couldnt find -install-global-extension


setup.cmd
@ECHO OFF
rem cmdow @ /HID

start /wait setup.exe -ms -ira
start /wait "%programfiles%\Mozilla Firefox\firefox.exe" -install-global-extension "%CD%\dictionarysearch-0.7-fx+mz+tb.xpi"
start /wait "%programfiles%\Mozilla Firefox\firefox.exe" -install-global-extension "%CD%\download_manager_tweak-0.6.3-fx.xpi"
start /wait "%programfiles%\Mozilla Firefox\firefox.exe" -install-global-extension "%CD%\download_statusbar-0.9.2-fx.xpi"
start /wait "%programfiles%\Mozilla Firefox\firefox.exe" -install-global-extension "%CD%\googlebar-0.9.0.30-fx.xpi"
start /wait "%programfiles%\Mozilla Firefox\firefox.exe" -install-global-extension "%CD%\googlepreview-0.8-fx.xpi"
start /wait "%programfiles%\Mozilla Firefox\firefox.exe" -install-global-extension "%CD%\hotmail_tabs-0.9-fx.xpi"
start /wait "%programfiles%\Mozilla Firefox\firefox.exe" -install-global-extension "%CD%\launchy-3.5.0-fx+tb.xpi"
start /wait "%programfiles%\Mozilla Firefox\firefox.exe" -install-global-extension "%CD%\mouse_gestures-1.0-fx+mz+tb.xpi"
start /wait "%programfiles%\Mozilla Firefox\firefox.exe" -install-global-extension "%CD%\noia_2.0_(extreme)-2.81-fx.jar"
start /wait "%programfiles%\Mozilla Firefox\firefox.exe" -install-global-extension "%CD%\plastikfox_crystal_svg-1.5.1-fx.jar"
start /wait "%programfiles%\Mozilla Firefox\firefox.exe" -install-global-extension "%CD%\tabbrowser_preferences-1.1.1-fx.xpi"

exit


the start and %CD% lines are one line any help as to why this didnt work would be appreciated


#2 User is offline   SiMoNsAyS 

  • C'mon you apes! You wanna live forever!?
  • Group: Patrons
  • Posts: 3,455
  • Joined: 17-May 04

Posted 23 January 2005 - 10:03 AM

not sure but try...
for %%e in ("%CD%\*.xpi") do "%PROGRAMFILES%\Mozilla Firefox\firefox.exe" -install-global-extension "%%e"

for %%e in ("%CD%\*.jar") do "%PROGRAMFILES%\Mozilla Firefox\firefox.exe" -install-global-extension "%%e"

and if it don't work...

start /wait %programfiles%\Mozilla Firefox\firefox.exe -install-global-extension "%CD%\dictionarysearch-0.7-fx+mz+tb.xpi"


ps: better to keep this questions on the firefox's thread :)

#3 User is offline   CHANDER 

  • Junior
  • Pip
  • Group: Members
  • Posts: 63
  • Joined: 19-January 05

Posted 23 January 2005 - 10:08 AM

The second method wouldnt work because Program Files would require quotes around it I believe. I just scrapped the idea and left it as it was originally...a second line in my wpi wont really hurt anything :P

#4 User is offline   Nologic 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 461
  • Joined: 07-October 03

Posted 23 January 2005 - 12:21 PM

SiMoNsAyS -

Actually for themes its "-install-global-theme"

Any ways here is some AutoIt code that does the above.

; Install XPI files
$search	= FileFindFirstFile ( @ScriptDir & "\Cache_XPI\*.xpi" )
If $search <> -1 Then
	While 1
  $xpi = FileFindNextFile ( $search )
  If @error Then ExitLoop

  RunWait ( @ProgramFilesDir & "\Mozilla Firefox\firefox.exe -install-global-extension " & Chr(34) & @ScriptDir & "\Cache_XPI\" & $xpi & Chr(34) )
  Sleep	( 500 )
	Wend
FileClose	( $search )
EndIf

; Install Themes files
$search	= FileFindFirstFile ( @ScriptDir & "\Cache_Theme\*.jar" )
If $search <> -1 Then
	While 1
  $jar = FileFindNextFile ( $search )
  If @error Then ExitLoop

  RunWait ( @ProgramFilesDir & "\Mozilla Firefox\firefox.exe -install-global-theme " & Chr(34) & @ScriptDir & "\Cache_Theme\" & $jar & Chr(34) )
	Wend
FileClose	( $search )
EndIf


#5 User is offline   CHANDER 

  • Junior
  • Pip
  • Group: Members
  • Posts: 63
  • Joined: 19-January 05

Posted 23 January 2005 - 12:52 PM

I've been using the -global-extension switch the whole time and it works fine :blink:

#6 User is offline   Nologic 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 461
  • Joined: 07-October 03

Posted 23 January 2005 - 02:11 PM

It may work fine now...but the other one is whats proper.

#7 User is offline   CHANDER 

  • Junior
  • Pip
  • Group: Members
  • Posts: 63
  • Joined: 19-January 05

Posted 23 January 2005 - 02:15 PM

K I'l remember that.

#8 User is offline   tinnef 

  • Junior
  • Pip
  • Group: Members
  • Posts: 57
  • Joined: 19-October 03

Posted 24 January 2005 - 12:10 PM

What I did at some point (with Thunderbird, but I reckon it would work with Firefox as well) is add the xpi to the install files before remaking it into an sfx, and adding the relevant entry to config.ini, since all components are xpi anyways. After the setup the minimizetotray.xpi was indeed installed and working.

I stumbled upon it by accident, and realized I had to redo it for every new version, so the install-global way would be a lot easier. But I think it would be fairly easy to automate; the syntax is pretty straightforward (and probably documented in detail).

#9 User is offline   SiMoNsAyS 

  • C'mon you apes! You wanna live forever!?
  • Group: Patrons
  • Posts: 3,455
  • Joined: 17-May 04

Posted 24 January 2005 - 12:36 PM

@Nologic didn't know about that, although global-extension always worked for me. i'll update my cmds thanks :D

@tinnef thought on that too. maybe firefox is different from thunderbird or maybe i was a bit blind but i couldn't find the way to add them without corrupting the installer.
anyway every new version will need a lot of work updating the installer so for the moment i'll stick to the cmd method.

#10 User is offline   Nologic 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 461
  • Joined: 07-October 03

Posted 24 January 2005 - 04:58 PM

tinnef -

Actually I'd be very interested in seeing what kind of edits you made to the ini file. I have a new alpha autoit script that makes changes to the ini file prior to running the installation...this was the only way I could fine to alter the default install path.

So really with some slight modifications to the above posted code...I can update the ini on the fly...so one can then update or add or remove extensions and themes as they like.

Really with being able to update the ini file...I would then only be slightly slower than SiMoNsAyS method when dealing with large collections of extensions and themes....hehe right now....mine is butt a** slow. ;)


SiMoNsAyS -

Really at this point you could probably use ether one of them for themes and extensions...I don't think there is currently any diff with the install methods for ether file type...but that might change in the future. Your welcome also.

Well if you got any info to add on the ini edits I'd be very interested. :)

Share this topic:


Page 1 of 1
  • 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