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

Answer Summary:
Cancel
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Answers

1
Answered 07/17/2012 by: jagadeish
Red Belt

  • Yes. I thought I followed his instructions with slight variation for our situation.
  • 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.
    • I didn't see any comments on your blog that would help my situation. But thanks
Please log in to comment
1

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)

Answered 07/18/2012 by: ontari.ontari
Black Belt

  • Thanks. I tried that but still got the same error.
  • I read something about profiles from the past. I deleted the whole c:\program files\mozilla firefox folder, as well as the logged user %appdata%...firefox files. Same problem as before
Please log in to comment
0

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

Answered 07/25/2012 by: jfrasier
Seventh Degree Black Belt

Please log in to comment
0

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

Answered 07/25/2012 by: jfrasier
Seventh Degree Black Belt

Please log in to comment
Answer this question or Comment on this question for clarity
Admin Script Editor
Admin Script Editor is an integrated scripting environment available free here at ITNinja

Share