Mar 25, 2015
114 Views

Firefox install slient with config

Written by

To configure the Firefox default settings at the application level for all new and existing users you will need to use cusomised config file. There is one thing to note, that is that once the settings are configured it can not be changed by the user, whether or not you use ‘pref’ or ‘lockPref’. The following process has been tested and confirmed as working with Firefox 30 and SCCM R3 on Windows XP x86, Windows 7 x86, Windows 7 x64, Windows 8 x86 as well as Windows 8 x64. It does the following tasks:

  • Install Firefox 30 silently, without FireFox being the default
  • Disables the ‘Automatically check for updates’ option
  • Disables the import wizard when FireFox first loads
  • Disables the ‘Always check to see if Firefox is the default browser on startup’ option
  • Sets homepage to ‘http://www.itsupportguides.com’
  • Disables the ‘know your rights’ button from displaying on first run
  • Disables the request to send performance data from displaying

How to customise and deploy (silent install) Firefox 30:

  1. Create a temporary working folder for saving the files into (for example, create C:\TEMP\Firefox)2
  2. Download the latest install file at http://www.mozilla.org/en-US/firefox/all . Save to C:\TEMP\Firefox
  3. Create a new text file called ‘override.ini’ and copy in the following information:
[XRE] EnableProfileMigrator=false

  1. Create a new text file called ‘local-settings.js’ and copy in the folling information:

pref(“general.config.obscure_value”, 0); pref(“general.config.filename”, “mozilla.cfg”);

  1. Create a new text file called ‘mozilla.cfg’ and copy in the following information:

//Firefox Default Settings
// set Firefox Default homepage
pref(“browser.startup.homepage”,”http://google.com”);
// disable default browser check pref(“browser.shell.checkDefaultBrowser”, false);
pref(“browser.startup.homepage_override.mstone”, “ignore”);
// disable application updates pref(“app.update.enabled”, false)
// disables the ‘know your rights’ button from displaying on first run
pref(“browser.rights.3.shown”, true); // disables the request to send performance data from displaying
pref(“toolkit.telemetry.prompted”, 2);
pref(“toolkit.telemetry.rejected”, true);

  1. Create a new text file called ‘install.cmd’ and copy in the following information

@echo off
REM==========================================
REM Install FireFox
REM==========================================
REM Script Details:
REM ————–
REM This script will:
REM + silently install or upgrade Firefox 30 WITHOUT Firefox being the default browser
REM + Disables the ‘Automatically check for updates’ option
REM + Disables the ‘Always check to see if Firefox is the default browser on startup’ option
REM + Deletes desktop icon
REM + Disables the Import Wizard
REM + Works for Windows XP / 7 /8 32-bit and 64-bit
REM .
REM===========================================
echo Installing Firefox – Please Wait. echo Window will close after install is complete
REM Install Firefox “%~dp0Firefox Setup 30.0.exe” -ms
REM Install 32-bit customisations
if exist “%programfiles%\Mozilla Firefox\” copy /Y “%~dp0override.ini” “%programfiles%\Mozilla Firefox\browser\”
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”
REM Install 64-bit customisations
if exist “%ProgramFiles(x86)%\Mozilla Firefox\” copy /Y “%~dp0override.ini” “%ProgramFiles(x86)%\Mozilla Firefox\browser\”
if exist “%ProgramFiles(x86)%\Mozilla Firefox\” copy /Y “%~dp0mozilla.cfg” “%ProgramFiles(x86)%\Mozilla Firefox\”
if exist “%ProgramFiles(x86)%\Mozilla Firefox\” copy /Y “%~dp0local-settings.js” “%ProgramFiles(x86)%\Mozilla Firefox\defaults\pref”
REM Removes Firefox Desktop Icon – Windows XP
if exist “%allusersprofile%\Desktop\Mozilla Firefox.lnk” del “%allusersprofile%\Desktop\Mozilla Firefox.lnk” /S
REM Removes Firefox Desktop Icon – Windows 7 / 8
if exist “%public%\Desktop\Mozilla Firefox.lnk” del “%public%\Desktop\Mozilla Firefox.lnk”
REM Return exit code to SCCM
exit /B %EXIT_CODE%

  1. Copy the Firefox install file, override.ini, mozilla.cfg, local-settings.js and install.cmd to your software package share

You can now create your SCCM package or deploy the software by using install.cmd.

 

 

 

Article Tags:
· · · · · · · · · · · · · · · · · · · · · · · · ·
Article Categories:
IT & Network
    http://linholiver.com

    https://linholiver.com/diary/about/