Problems installing Firefox 12
I created a script to install Firefox 12 and when it is run the first time I get the error, "Failed to read the configuration file."
From another post I created the following files:
Mozilla.cfg
//
Pref("browser.startup.homepage","http://jeffcolibrary.org/staff");
//
lockPref("browser.shell.checkDefaultBrowser", false);
lockPref("browser.startup.homepage_override.mstone", "ignore");
//
lockPref("browser.rights.3.shown", false);
//
lockPref("toolkit.telemetry.prompted", 2);
lockPref("toolkit.telemetry.rejected", true);
override.ini
[XRE]
EnableProfileMigrator=false
local-settings.js
pref("general.config.obscure_value", 0);
pref("general.config.filename", "mozilla.cfg");
My batch file looks like this:
"%~dp0firefox_setup_12.0.exe" -ms
REM Install 32-bit customisations
if exist "%programfiles%\Mozilla Firefox\" copy /Y "%~dp0override.ini" "%programfiles%\Mozilla Firefox\"
if exist "%programfiles%\Mozilla Firefox\" copy /Y "%~dp0mozilla.cfg" "%programfiles%\Mozilla Firefox\"
if exist "%programfiles%\Mozilla Firefox\" copy /Y "%~dp0local-settings.js" "%programfiles%\Mozilla Firefox\defaults\pref\"
I zipped these files with firefox_setup.exe.
The files were copied to the correct folders and I noticed that I got the settings from local-settings.js in my profile.
Not sure where I have gone wrong.
Thanks.
Jane
Answers (4)
Have you seen Piyushnasa's blog?
http://msiworld.blogspot.com.au/2012/01/packaging-mozilla-firefox-901.html
Comments:
-
Yes. I thought I followed his instructions with slight variation for our situation. - jfrasier 12 years ago
-
There are some comments in the end which people have mentioned some other ways. Please read those comments and see if it works for your situation. You can too post there the solution when you get it. It will help others.
Thanks. - piyushnasa 12 years ago-
I didn't see any comments on your blog that would help my situation. But thanks - jfrasier 12 years ago
I have a suggession but sure how much extend it is correct, in the .cfg file i notieced lockPref instead of that change it to jus pref this might help you
Pref("browser.shell.checkDefaultBrowser", false);
Pref("browser.startup.homepage_override.mstone", "ignore");
//
Pref("browser.rights.3.shown", false);
//
Pref("toolkit.telemetry.prompted", 2);
Pref("toolkit.telemetry.rejected", true)
I have tried more things. I encoded the mozilla.cfg file and changed "general.config.obscure_value"1); and my prefs were not applied. I tried putting the full path in "general.config.filename", "c:\program files\mozilla firefox\mozilla.cfg:);. Still nothing. I double checked that mozilla.cfg and the local-settings.js file were in the proper places.
I am just stumped.
Jane
I think I have solved it. Either these settings are somehow incompatible with Firefox 12 which is what I was testing, or there was something wrong with my setup.exe.
I downloaded a zip file from http://www.mockbox.net/configmgr-sccm/174-install-and-configure-firefox-silently and made a few changes and ran it and it works fine.
Jane