Can we install add-on files(xpi files) in mozilla firefox silently?
We have to create a package for installing 3 add-ons of firefox. We got 3 xpi files for it. What will be the best way to package them?
As after installation it installs file in below location. o1s06aij.default is a random name, on every machine it may be different.
%userprofile%\Application Data\Mozilla\Firefox\Profiles\o1s06aij.default
As after installation it installs file in below location. o1s06aij.default is a random name, on every machine it may be different.
%userprofile%\Application Data\Mozilla\Firefox\Profiles\o1s06aij.default
0 Comments
[ + ] Show comments
Answers (9)
Please log in to answer
Posted by:
anonymous_9363
13 years ago
Posted by:
dunnpy
13 years ago
abking99,
The second item on the below page shows details of how to achieve what you are trying to do and how to install for all users:
Firefox Plugins
The commands could be used as custom actions in a package, or snap shot the installation using the commands.
Or it seems by placing the files in the correct folder the addon will install automatically.
Seek and ye shall find,
Dunnpy
The second item on the below page shows details of how to achieve what you are trying to do and how to install for all users:
Firefox Plugins
The commands could be used as custom actions in a package, or snap shot the installation using the commands.
Or it seems by placing the files in the correct folder the addon will install automatically.
Seek and ye shall find,
Dunnpy
Posted by:
nheim
13 years ago
Hi,
if you are going to build a package anyway, the easiest way would be to install them globally:
firefox -install-global-extension <Path>\xy.xpi
After that, you can capture the resulting directory (often in the form of GUID) in the firefox\extensions folder to your package.
That's all. Actually, it does not need any installation.
Regards, Nick
if you are going to build a package anyway, the easiest way would be to install them globally:
firefox -install-global-extension <Path>\xy.xpi
After that, you can capture the resulting directory (often in the form of GUID) in the firefox\extensions folder to your package.
That's all. Actually, it does not need any installation.
Regards, Nick
Posted by:
abking99
13 years ago
Posted by:
nheim
13 years ago
Posted by:
abking99
13 years ago
No, it is not like that. If it does not install properly, then it shows like that: I will like to explain the same.
We can install these add-ons with different ways. When we drag xpi file in firefox, it 1st checks compatibillity and updates the extensions.rdf, and extensions.cache files, and installs perfectly. If we use "-install-global-extension" command then it does not check compatibillty. It directly installs. So it shows incompatible, and it does not work. If we want to make it work then we have to put one boolean value in about:config, then it works, but it will always show incompatible.
So finally i choose below logic: I wrote a vbs file and gave a call to it, through active setup.
1) I copied xpi files in %userprofile%\Application Data\Mozilla\Firefox\Profiles\o1s06aij.default\extensions folder.
2) Then I launched firefox, it detected xpi files and gave me prompt to click on install
3) I send key-stroke to enter through vbscript
And add-ons got installed.
We can install these add-ons with different ways. When we drag xpi file in firefox, it 1st checks compatibillity and updates the extensions.rdf, and extensions.cache files, and installs perfectly. If we use "-install-global-extension" command then it does not check compatibillty. It directly installs. So it shows incompatible, and it does not work. If we want to make it work then we have to put one boolean value in about:config, then it works, but it will always show incompatible.
So finally i choose below logic: I wrote a vbs file and gave a call to it, through active setup.
1) I copied xpi files in %userprofile%\Application Data\Mozilla\Firefox\Profiles\o1s06aij.default\extensions folder.
2) Then I launched firefox, it detected xpi files and gave me prompt to click on install
3) I send key-stroke to enter through vbscript
And add-ons got installed.
Posted by:
nheim
13 years ago
Hi abking,
i'm still curious, which extension you are talking about here!
I' don't know, what you are doing, but i build a firefox MSI package since version 1.5.x for thousands of clients, with more than a dozen extensions in it, which do things like 4 languages, automatic language switch, extra spell checking, group policy extension, picture tools a.s.o.
And half of them do not have the right version info for 3.5.x branch of firefox.
To your "solution": What are you going to do on the second computer? The path to the profile has a random generated directory in it, which changes on each user! There is a solution for that too, but maybe it would be better to invest more time into a real solution, than into the third workaround from the workaround....
Just speaking form experience...
Regards, Nick
i'm still curious, which extension you are talking about here!
I' don't know, what you are doing, but i build a firefox MSI package since version 1.5.x for thousands of clients, with more than a dozen extensions in it, which do things like 4 languages, automatic language switch, extra spell checking, group policy extension, picture tools a.s.o.
And half of them do not have the right version info for 3.5.x branch of firefox.
To your "solution": What are you going to do on the second computer? The path to the profile has a random generated directory in it, which changes on each user! There is a solution for that too, but maybe it would be better to invest more time into a real solution, than into the third workaround from the workaround....
Just speaking form experience...
Regards, Nick
Posted by:
abking99
13 years ago
1)I got 3 xpi -addon files in source. You just have to keep those xpi files, at "%userprofile%\Application Data\Mozilla\Firefox\Profiles\o1s06aij.default\extension" location. So after launching firefox it detects those files and install it.
2) The script which I have created, it checks random name and stores it, in a variable. So Random name issue I have resolved it already
3) As I told you, I have used active setup: Which will trigger for each user ones.
2) The script which I have created, it checks random name and stores it, in a variable. So Random name issue I have resolved it already
3) As I told you, I have used active setup: Which will trigger for each user ones.
Posted by:
nheim
13 years ago
ok, it works for you.
YOU came with this interesting question to the board and asked for help.
If it had been a just a small issue, i would never have insisted on working this out in this detail.
But this is an issue, which is quite often asked in various boards throughout the net.
Therefore, i would like to show you, how one can install extensions globally and how to solve the problems, which may arise.
So, please tell us the names of those 3 extensions, you are installing.
And further: There are quite a few possibilities to this (at least on Windows). See:
https://developer.mozilla.org/en/Adding_Extensions_using_the_Windows_Registry
https://developer.mozilla.org/en/Installing_extensions
And it is changing: See: https://developer.mozilla.org/en/Command_Line_Options#Add-ons
Regards, Nick
YOU came with this interesting question to the board and asked for help.
If it had been a just a small issue, i would never have insisted on working this out in this detail.
But this is an issue, which is quite often asked in various boards throughout the net.
Therefore, i would like to show you, how one can install extensions globally and how to solve the problems, which may arise.
So, please tell us the names of those 3 extensions, you are installing.
And further: There are quite a few possibilities to this (at least on Windows). See:
https://developer.mozilla.org/en/Adding_Extensions_using_the_Windows_Registry
https://developer.mozilla.org/en/Installing_extensions
And it is changing: See: https://developer.mozilla.org/en/Command_Line_Options#Add-ons
Regards, Nick

so that the conversation will remain readable.