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
  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

Firefox Extensions Silent install to the appdata extensions folder. Rate Topic: -----

#1 User is offline   benners 

  • Senior Member
  • PipPipPipPip
  • Group: Members
  • Posts: 692
  • Joined: 29-December 03

Posted 13 March 2006 - 04:50 PM

Does anyone know a way to silently install the xpi files to the profiles folder in the appdata dir instead of the application dir C:\Program Files\Mozilla Firefox\extensions.

I know about the -install-global-extension command and have tried editing the extensions.ini, xpti.dat and compreg.dat files to reflect the different directories but no joy.

The reason I want this is I have a list of 20 extensions that a user can choose from using the XPlode selected install method. Installing isn't problem but as they get installed in the application folder, if a profile is backed up it wont work on a fresh install of Firefox. The ones I use on Thunderbird work fine when moved from the application folder to the appdata folder as no other files seem to be altered, but I am struggling with Firefox.


#2 User is offline   SRJ 

  • Newbie
  • Group: Members
  • Posts: 48
  • Joined: 07-November 04

Posted 14 March 2006 - 04:57 AM

@benners,

Have you tried using Silence of the Foxes (SOF) to generate a silent switchless Firefox installer which includes all your themes and extensions? If not, I'd recommend it as it works very well. To grab it, do a search for SOF.

#3 User is offline   benners 

  • Senior Member
  • PipPipPipPip
  • Group: Members
  • Posts: 692
  • Joined: 29-December 03

Posted 14 March 2006 - 05:52 AM

View PostSRJ, on Mar 14 2006, 10:57 AM, said:

@benners,

Have you tried using Silence of the Foxes (SOF) to generate a silent switchless Firefox installer which includes all your themes and extensions? If not, I'd recommend it as it works very well. To grab it, do a search for SOF.

Hi SRJ,

I already have my own installer which installs silently, add the reg entries for association, deletes shortcuts then checks for profiles for the user currently logged on, if none is found a default is installed. The default has no settings or extensions and is used for people who want to specify the extensions they use instead of being dumped with 20 extensions that are not useful for them, this is why I want to install to the appdata folder, so that once the extensions have been chosen and the settings tweaked the user profile can be backed up and added to the install for next time.

#4 User is offline   Djé 

  • accent artist
  • PipPipPip
  • Group: Members
  • Posts: 359
  • Joined: 10-January 06

Posted 18 March 2006 - 02:36 AM

Hi Benners,

I liked your idea so I've been researching for it the whole day yesterday but to no avail.
It looks like it's a feature to avoid any security breach.

Now, there is still the AutoIt solution.
Mozilla uses is own type of controls with no text visible from outside and that you cannot access directly using 'controlclick' but this kind of solution is working:
;title of the extension installation window (something like "program installation")
Const $xpiInstallWindowTitle="Installation de logiciel"
	
BlockInput(1)

;Improve this from the user's choice
_xpiProfileInstall(".\extensions\fireftp-0.90.1.1-fx.xpi")
_xpiProfileInstall(".\extensions\adblock_plus-0.6.1.2-fx+fl+mz+ns.xpi")
_xpiProfileInstall(".\extensions\adblock_filterset.g_updater-0.3.0.2-fx+fl+mz+ns.xpi")
_xpiProfileInstall(".\extensions\colorful_tabs-1.1-fx+mz.xpi")
_xpiProfileInstall(".\extensions\bookmark_duplicate_detector-0.2.2-fx.xpi")
;...

ProcessClose("firefox.exe");Shut the door when leaving...
BlockInput(0)			;...and hand back the keys


;Da workin' man
func _xpiProfileInstall($extensionfile)
	Run('"' & @ProgramFilesDir & '\Mozilla Firefox\firefox.exe" "' & $extensionfile & '"')
	WinWait($xpiInstallWindowTitle,"", 10)
	If WinExists($xpiInstallWindowTitle) Then
		sleep(5000)
		Send("{ENTER}")
		sleep(3000)
	EndIf
EndFunc

I tested it at run time and it went smoothly. Test is still need at install time.

I hope this can help, and I also would be interested in your installer, as well as the one for thunderbird, if you don't mind sharing them here.

#5 User is offline   Shark007 

  • Repackaging Specialist
  • PipPipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 3,154
  • Joined: 07-January 04

Posted 18 March 2006 - 09:42 AM

the 'Application Data' folder is accessible using %APPDATA%
just remember that %APPDATA% translates to the logged in user at time of execution.

shark

#6 User is offline   benners 

  • Senior Member
  • PipPipPipPip
  • Group: Members
  • Posts: 692
  • Joined: 29-December 03

Posted 18 March 2006 - 10:08 AM

Hi Djé,

Thanks for your reply, I have been so myopic about installing the extensions silently and with as little fuss and code as poss, totally blanked runnnig the exe with the filename :blushing: , nice catch.

What could also be done is use WinWaitActive to wait until the window is visible then move it off screen (poor mans silent :D ). I could write the extensions the user selected to a temp file, then parse the filenames from the file and install them. maybe add error checking for extensions that are not compatible or missing and write the errors to a log file. I test the extensions before installation but don't use them all myself, so a few may slip few.

I use XPlode and AutoIt scripts to build my DVD image and one part parses the extensions dir and gets the filenames, the XPlode xml is updated with the version number if changed and this saves editing the xml everytime I add a new extension of a new version comes out.

My installers are just silent sfx's created with WinRAR and these contain the files that are extracted from the firefox or thunderbird setup exes, they are extracted to the temp dir and an appropriate icon is used for the sfx.I have attached my AutoIt script, this is compiled to Mozilla.exe and run from XPlode with command line options.

Attached File(s)



#7 User is offline   bledd 

  • msfn is a friend of mine!
  • Group: Supreme Sponsor
  • Posts: 1,732
  • Joined: 24-March 04

Posted 18 March 2006 - 10:17 AM

mate, just use silence of the foxes then add your own tweaks if you want after.. like shortcuts etc..

sof does it really well, and it sets the extentions for all users :D

#8 User is offline   benners 

  • Senior Member
  • PipPipPipPip
  • Group: Members
  • Posts: 692
  • Joined: 29-December 03

Posted 18 March 2006 - 10:51 AM

View Postbledd, on Mar 18 2006, 04:17 PM, said:

and it sets the extentions for all users :D

@bledd
Thats the problem, I don't want to install extensions that are not going to be useful, if I dont use ebay I don't want ebaynegs or if I have a pop3 mail account I dont need the webmail, hotmail and gmail extensions, and I dont want to have other folks searchplugins. :no:

#9 User is offline   keytotime 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 400
  • Joined: 05-October 04

Posted 18 March 2006 - 10:58 AM

1. Extract the setup files with 7-zip
2. Open up browser.xpi with 7-Zip
3. Copy all your extentions to browser.xpi\bin\extensions\
4. Copy all your plugins to browser.xpi\bin\plugins\
5. Open up "your language".xpi
6. Copy all the search plugins to "your language".xpi\bin\searchplugins\
7. Delete any you don't want.
8. Either run setup.exe directly or make a 7-Zip switchless installer see my signature.

#10 User is offline   benners 

  • Senior Member
  • PipPipPipPip
  • Group: Members
  • Posts: 692
  • Joined: 29-December 03

Posted 18 March 2006 - 11:29 AM

View Postkeytotime, on Mar 18 2006, 04:58 PM, said:

1. Extract the setup files with 7-zip
2. Open up browser.xpi with 7-Zip
3. Copy all your extentions to browser.xpi\bin\extensions\
4. Copy all your plugins to browser.xpi\bin\plugins\
5. Open up "your language".xpi
6. Copy all the search plugins to "your language".xpi\bin\searchplugins\
7. Delete any you don't want.
8. Either run setup.exe directly or make a 7-Zip switchless installer see my signature.

Hi keytotime,
If I followed your process above how would the user be able to choose which extensions or seachplugins they wanted to install?. I will not be the only person using these installers and would like to offer the flexibility of installing only the searchplugins and extensions they wanted. After using Firefox and setting the options for the different extensions a user could then send me their profiles dir and I could add it to the profiles dir and next time it would be copied after the installation, but I can't see a way using your method, am I missing something?

Also, if I am understanding it correctly using SOF is good for 1 user but would not work for multiple users as you would need to create a seperate executable for every user, is this correct.?

Thanks.

#11 User is offline   benners 

  • Senior Member
  • PipPipPipPip
  • Group: Members
  • Posts: 692
  • Joined: 29-December 03

Posted 19 March 2006 - 04:52 PM

Sorted :D , I think

#12 User is offline   QKnet 

  • Newbie
  • Group: Members
  • Posts: 37
  • Joined: 24-September 04

Posted 22 March 2006 - 11:53 PM

Quote

1. Extract the setup files with 7-zip
2. Open up browser.xpi with 7-Zip
3. Copy all your extentions to browser.xpi\bin\extensions\
4. Copy all your plugins to browser.xpi\bin\plugins\
5. Open up "your language".xpi
6. Copy all the search plugins to "your language".xpi\bin\searchplugins\
7. Delete any you don't want.
8. Either run setup.exe directly or make a 7-Zip switchless installer see my signature.

:yes:

Though SOF is commented excellent, this is what I follows as I don't need to download again the extensions and themes. Once installed, the extension applies to all profiles. I want it that way.

One question is: what about the talkback.xpi and xpcom.xpi? I deleted them but i'm not so sure if the installer works fine after that.
:whistle:

This post has been edited by QKnet: 22 March 2006 - 11:55 PM


#13 User is offline   Djé 

  • accent artist
  • PipPipPip
  • Group: Members
  • Posts: 359
  • Joined: 10-January 06

Posted 23 March 2006 - 06:45 AM

View PostQKnet, on Mar 23 2006, 06:53 AM, said:

One question is: what about the talkback.xpi and xpcom.xpi? I deleted them but i'm not so sure if the installer works fine after that.
:whistle:

Edit config.ini to skip their installation. (xpcom is already skipped by default)
In that file, you can also set install mode to silent, so you won't any switch.

#14 User is offline   bledd 

  • msfn is a friend of mine!
  • Group: Supreme Sponsor
  • Posts: 1,732
  • Joined: 24-March 04

Posted 23 March 2006 - 06:48 AM

View Postbenners, on Mar 18 2006, 04:51 PM, said:

View Postbledd, on Mar 18 2006, 04:17 PM, said:

and it sets the extentions for all users :D

@bledd
Thats the problem, I don't want to install extensions that are not going to be useful, if I dont use ebay I don't want ebaynegs or if I have a pop3 mail account I dont need the webmail, hotmail and gmail extensions, and I dont want to have other folks searchplugins. :no:



what???????



it only installs extentions that you tell it to

just try it out, it is what you're looking for :realmad:

#15 User is offline   Djé 

  • accent artist
  • PipPipPip
  • Group: Members
  • Posts: 359
  • Joined: 10-January 06

Posted 23 March 2006 - 07:14 AM

View Postbledd, on Mar 23 2006, 01:48 PM, said:

View Postbenners, on Mar 18 2006, 04:51 PM, said:

View Postbledd, on Mar 18 2006, 04:17 PM, said:

and it sets the extentions for all users :D
what???????
it only installs extentions that you tell it to
What? What ???????

Of course, but 'all users' means in the 'program files' extensions folder, not in the 'profile' extensions folder.

If different person are using the same computer they may not want to have their browser poluted by unwanted extensions.
For exemple, my grand-mother may not use the same extensions as me (such as the web developper toolbar, for which I have no use).
And my grand-daughter neither (sorry no grand-daughter yet, so no exemple).
So we need to have separated extension set (even with possible doubles) in our own profile folders.

Beside, it's a good practice to not assume what people want or need. :whistle:
And so install things to relevant users profiles and not ALL users when they are meant to be used by only one user.
Mozilla knows that and installs extensions to your profile when done manually.

View Postbledd, on Mar 23 2006, 01:48 PM, said:

just try it out, it is what you're looking for :realmad:
You know me better than I, heh!? ;)

This post has been edited by Djé: 23 March 2006 - 07:48 AM


#16 User is offline   benners 

  • Senior Member
  • PipPipPipPip
  • Group: Members
  • Posts: 692
  • Joined: 29-December 03

Posted 23 March 2006 - 09:30 AM

SOF IS NO GOOD FOR WHAT I WANT!!,

@Djé
You and I seem to be on the same page, that is what I want to happen. I have finished my script and it has worked on 3 different computers with 5 installs total. The problem with doubles, extensions in both folders, is that the extensions.ini has two entries for the same extension and if you want to uninstall you have to uninstall it twice.

If you can make use of my AutoIt let me know and I will send it you. I use XPlode to select the extensions for each user or computername and the compiled script to install Firefox, Thunderbird, Install the extensions and delete the shortcuts if the username is Benners.

#17 User is offline   oioldman 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 967
  • Joined: 16-April 04
  • OS:Windows 7 x64

Posted 25 March 2006 - 02:45 PM

i understand you quite happily and think that WPI will do as you wish.
Though not knowing how you do your app installs, not sure how you would start this.

Basically i see it being launched towards the end of your build, people check those extensions they wish to use, it installs only them and continues with your build. It is normally run at first login, which is administrator, but if you placed as a runonce for each user, then it would still work.

oioldman

WPI - Windows Post Installer (shold be in Member Contributed Section)

#18 User is offline   benners 

  • Senior Member
  • PipPipPipPip
  • Group: Members
  • Posts: 692
  • Joined: 29-December 03

Posted 25 March 2006 - 11:23 PM

Hi oioldman, thanks for the reply. I use XPlode to install the apps, similar to WPI, XPlode has a selectedinstall plugin that can also do as you describe, this is the plugin I use. Although you can select the extensions to install, using the -install-global-extension the actual extension is installed to C:\Program Files\Mozilla Firefox\extensions and not to the C:\Documents and Settings\username\Application Data\Mozilla\Firefox\Profiles\voflrj9w.default\extensions so if you backup the profile by copying the Profiles\voflrj9w.default the extensions will not be available, but as stated before the prob is sorted.

#19 User is offline   Djé 

  • accent artist
  • PipPipPip
  • Group: Members
  • Posts: 359
  • Joined: 10-January 06

Posted 26 March 2006 - 07:52 PM

View Postbenners, on Mar 23 2006, 04:30 PM, said:

If you can make use of my AutoIt let me know and I will send it you. I use XPlode to select the extensions for each user or computername and the compiled script to install Firefox, Thunderbird, Install the extensions and delete the shortcuts if the username is Benners.

Sorry for the delay.
Yes, I'm interested in your script (does it copy back the profile as well?)

I am also interested in the XPlode part. I've never used that one but now that you are talking about that plugin, it would be very interesting.
Also I am currently working on an excel sheet (+ vb macros) to allow me to maintain only one list of programs while trying different method of install (RunOnceEx, kTool, WPI for now) and I'd love to have a working xplode example so I can add another method plugin.
If you want to try that one, I'll post it as soon as it will work properly, and tell you about it.

#20 User is offline   benners 

  • Senior Member
  • PipPipPipPip
  • Group: Members
  • Posts: 692
  • Joined: 29-December 03

Posted 27 March 2006 - 10:43 AM

View PostDjé, on Mar 27 2006, 01:52 AM, said:

Yes, I'm interested in your script (does it copy back the profile as well?)

Yes, there is a folder in the same dir as the compiled script called profiles, this has 2 subfolders, firefox and thunderbird, each contain folders named Default for a default profile and others named after different users. The script gets the name of the current logged on user and copies the profile from the directory of the same name, if no folder is found the default is used.

The XPlode part uses a few xmls, a couple to set variables and the main application installation xml. When I build my uA DVD an AutoIt script parses the extensions directory and gets the names of the folders in it, these names are used as variables in the main xml, the filenames inside the folders are also parsed and this keeps the version numbers updated.

The xmls are attached along with the au3 file, this compiles to Mozilla.exe. If you see any bloopers or can see a clean code way to do things let me know, bit of an AutoIt noob. :D

Attached File(s)

  • Attached File  xml.rar (11.65K)
    Number of downloads: 34


Share this topic:


  • 2 Pages +
  • 1
  • 2
  • 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