1. Download the newest offline installer: http://www.mozilla.org/en-US/firefox/all.html

2. Create a new text file called 'override.ini' and copy in the following information:

[XRE]

EnableProfileMigrator=false

 

 

 3. 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");

 

 

 

 

 4. 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",https://yourcompany.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);

// browser settings

pref("browser.migration.version", 1);

pref("browser.places.importBookmarksHTML", false);

pref("browser.places.smartBookmarksVersion", 1);

pref("browser.preferences.advanced.selectedTabIndex", 1);

pref("browser.rights.3.shown", true); pref("browser.shell.checkDefaultBrowser", false);

pref("browser.startup.homepage", "https://yourcompany.com");

pref("browser.startup.homepage_override.mstone", "rv:1.9.2");

pref("intl.charsetmenu.browser.cache", "UTF-8");

// network settings

pref("network.automatic-ntlm-auth.trusted-uris", "fifa.org");

pref("network.cookie.prefsMigrated", true);

pref("network.proxy.autoconfig_url", "http://proxy.pac");

pref("network.proxy.type", 2);

pref("privacy.sanitize.migrateFx3Prefs", true);

// autoupdate disable

pref("app.update.auto", false);

pref("app.update.enabled", false);

pref("browser.search.update", false);

pref("extensions.update.enabled", false);

You can find all settings if you open Firefox and type about:config in the browse bar

5. Create a new text file called 'install.cmd' and copy in the following information:

@echo off

set AppName=Mozilla Firefox 22.0.0 32bit (EN) - 001

 

:: Path for logfiles.

set Logs=%SystemDrive%\Logs

if not exist %Logs% MD %Logs%

set LogFile=%Logs%\%AppName%.log

set LogFinal=%Logs%\finalcheck%AppName%.log

 

:: Installation

if /i "%PROCESSOR_ARCHITECTURE%"=="AMD64" goto AMD64

if /i "%PROCESSOR_ARCHITEW6432%"=="AMD64" goto AMD64

if /i "%PROCESSOR_ARCHITECTURE%"=="x86" goto x86

echo %date% %time% ERROR: Processor Architecture "%PROCESSOR_ARCHITECTURE%" unknown >>"%LogFile%"

goto Error

 

:x86

echo %date% %time% Installation (32 bit) of %AppName% >>"%LogFile%"

cd /D %~dp0

"%~dp0Firefox Setup 22.0.exe" -ms

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"

IF %ERRORLEVEL% EQU 3010 set ERRORLEVEL=0

IF %ERRORLEVEL% NEQ 0 goto Error

goto cleanup

 

:AMD64

echo %date% %time% Installation (64 bit) of %AppName% >>"%LogFile%"

cd /D %~dp0

"%~dp0Firefox Setup 22.0.exe" -ms

if exist "%ProgramFiles(x86)%\Mozilla Firefox\" copy /Y "%~dp0override.ini" "%ProgramFiles(x86)%\Mozilla Firefox\"

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"

IF %ERRORLEVEL% EQU 3010 set ERRORLEVEL=0.

IF %ERRORLEVEL% NEQ 0 goto Error

goto cleanup

 

:: Cleanup

:Cleanup

if exist "%ALLUSERSPROFILE%\Start Menu\Programs\Mozilla Firefox.lnk" del /f /q "%ALLUSERSPROFILE%\Start Menu\Programs\Mozilla Firefox.lnk"

if exist "%public%\Desktop\Mozilla Firefox.lnk" del "%public%\Desktop\Mozilla Firefox.lnk"

goto End

:: Errorhandler

:Error

echo %date% %time% %AppName% >>"%LogFinal%"

if %errorlevel% EQU 1 echo ERROR 1 - [NOT-SUCCESS] - Fatal Error >>"%LogFinal%"

if %errorlevel% EQU 13 echo ERROR 13 - [INVALID_DATA] - The data is invalid >>"%LogFinal%"

if %errorlevel% EQU 87 echo ERROR 87 - [INVALID_PARAMETER] - One of the parameters was invalid. >>"%LogFinal%"

if %errorlevel% EQU 1601 echo ERROR 1601 - [FAILURE] - The Windows Installer service could not be accessed >>"%LogFinal%"

if %errorlevel% EQU 1602 echo ERROR 1602 - [INSTALL_USEREXIT] - User cancel installation >>"%LogFinal%"

if %errorlevel% EQU 1603 echo ERROR 1603 - [INSTALL_FAILURE] - Fatal error during installation >>"%LogFinal%"

if %errorlevel% EQU 1604 echo ERROR 1604 - [INSTALL_SUSPEND] - Installation suspended, incomplete >>"%LogFinal%"

if %errorlevel% EQU 1608 echo ERROR 1608 - [UNKNOWN_PROPERTY] - Unknown property >>"%LogFinal%"

if %errorlevel% EQU 1610 echo ERROR 1610 - [BAD_CONFIGURATION] - The configuration data for this product is corrupt >>"%LogFinal%"

if %errorlevel% EQU 1612 echo ERROR 1612 - [INSTALL_SOURCE_ABSENT] - The installation source for this product is not available >>"%LogFinal%"

if %errorlevel% EQU 1613 echo ERROR 1613 - [INSTALL_PACKAGE_VERSION] - Servicepack required >>"%LogFinal%"

if %errorlevel% EQU 1618 echo ERROR 1618 - [INSTALL_ALREADY_RUNNING] - Another installation is already in progress >>"%LogFinal%"

if %errorlevel% EQU 1619 echo ERROR 1619 - [_INSTALL_PACKAGE_OPEN] - This installation package could not be opened >>"%LogFinal%"

if %errorlevel% EQU 1621 echo ERROR 1621 - [INSTALL_UI_ERROR] -There was an error starting the Windows Installer >>"%LogFinal%"

if %errorlevel% EQU 1624 echo ERROR 1624 - [INSTALL_TRANSFORM_FAILURE] - Error applying transforms >>"%LogFinal%"

if %errorlevel% EQU 1639 echo ERROR 1639 - [INVALID_COMMAND_LINE] - Invalid command line argument >>"%LogFinal%"

if %errorlevel% EQU 3010 echo ERROR 3010 - [SUCCESS_REBOOT_REQUIRED] - A restart is required to complete >>"%LogFinal%"

echo %date% %time% ERROR: %ERRORLEVEL% >>"%LogFile%"

echo Error: %ERRORLEVEL%

echo.

 

:: End of Script

:End

echo %date% %time% End installation of %AppName% >>"%LogFile%"

echo End

 

 

 6. Create a new uninstall.cmd file and copy in the folling information:

@echo off

set AppName=Mozilla Firefox 22.0.0 32bit (EN) - 001

:: Path for logfiles.

set Logs=%SystemDrive%\Logs

if not exist %Logs% MD %Logs%

set LogFile=%Logs%\%AppName%.log

 

:: Uninstallation

if /i "%PROCESSOR_ARCHITECTURE%"=="AMD64" goto AMD64

if /i "%PROCESSOR_ARCHITEW6432%"=="AMD64" goto AMD64

if /i "%PROCESSOR_ARCHITECTURE%"=="x86" goto x86

echo %date% %time% ERROR: Processor Architecture "%PROCESSOR_ARCHITECTURE%" unknown >>"%LogFile%"

goto Error

 

:x86

echo %date% %time% Start uninstallation of %AppName% >>"%LogFile%"

"%ProgramFiles(X86)%\Mozilla Maintenance Service\Uninstall.exe" /S

regedit /s "%~dp0delAddRemoveEintrag.reg"

IF %ERRORLEVEL% NEQ 0 goto Error

goto Cleanup

 

:AMD64

echo %date% %time% Start uninstallation of %AppName% >>"%LogFile%"

"%ProgramFiles(x86)%\Mozilla Maintenance Service\Uninstall.exe" /S

regedit /s "%~dp0delAddRemoveEintrag.reg"

IF %ERRORLEVEL% NEQ 0 goto Error

goto Cleanup

 

:: Cleanup

:Cleanup

if exist "%ALLUSERSPROFILE%\Start Menu\Programs\Communications\Mozilla Firefox.lnk" del /f /q "%ALLUSERSPROFILE%\Start Menu\Programs\Communications\Mozilla Firefox.lnk"

if exist "%PROGRAMFILES(x86)%\Mozilla Firefox\" rmdir /s /q "%PROGRAMFILES(x86)%\Mozilla Firefox\"

:: Errorhandler

goto End

:Error

echo %date% %time% ERROR: %ERRORLEVEL% >>"%LogFile%"

echo Error: %ERRORLEVEL%

echo.

 

:: End of Script

:End

echo %date% %time% End uninstallation of %AppName% >>"%LogFile%"

echo End

 

That's it, now you can deploy the new Firefox with every deployment software.

If you have any questions, feel free to ask.