Firefox Extensions Silent install to the appdata extensions folder.
#1
Posted 13 March 2006 - 04:50 PM
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
Posted 14 March 2006 - 04:57 AM
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
Posted 14 March 2006 - 05:52 AM
SRJ, on Mar 14 2006, 10:57 AM, said:
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
Posted 18 March 2006 - 02:36 AM
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
Posted 18 March 2006 - 09:42 AM
just remember that %APPDATA% translates to the logged in user at time of execution.
shark
#6
Posted 18 March 2006 - 10:08 AM
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
What could also be done is use WinWaitActive to wait until the window is visible then move it off screen (poor mans silent
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)
-
installer.rar (19.87K)
Number of downloads: 58
#7
Posted 18 March 2006 - 10:17 AM
sof does it really well, and it sets the extentions for all users
#8
Posted 18 March 2006 - 10:51 AM
bledd, on Mar 18 2006, 04:17 PM, said:
@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.
#9
Posted 18 March 2006 - 10:58 AM
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
Posted 18 March 2006 - 11:29 AM
keytotime, on Mar 18 2006, 04:58 PM, said:
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.
#12
Posted 22 March 2006 - 11:53 PM
Quote
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.
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.
This post has been edited by QKnet: 22 March 2006 - 11:55 PM
#13
Posted 23 March 2006 - 06:45 AM
QKnet, on Mar 23 2006, 06:53 AM, said:
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
Posted 23 March 2006 - 06:48 AM
benners, on Mar 18 2006, 04:51 PM, said:
bledd, on Mar 18 2006, 04:17 PM, said:
@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.
what???????
it only installs extentions that you tell it to
just try it out, it is what you're looking for
#15
Posted 23 March 2006 - 07:14 AM
bledd, on Mar 23 2006, 01:48 PM, said:
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.
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.
bledd, on Mar 23 2006, 01:48 PM, said:
This post has been edited by Djé: 23 March 2006 - 07:48 AM
#16
Posted 23 March 2006 - 09:30 AM
@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
Posted 25 March 2006 - 02:45 PM
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
Posted 25 March 2006 - 11:23 PM
#19
Posted 26 March 2006 - 07:52 PM
benners, on Mar 23 2006, 04:30 PM, said:
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
Posted 27 March 2006 - 10:43 AM
Djé, on Mar 27 2006, 01:52 AM, said:
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.
Attached File(s)
-
xml.rar (11.65K)
Number of downloads: 34
- ← Internet Explorer Errors
- Application Installs
- ReplayMusic Unattended? SetupFactory type installer →



Help


Back to top








