You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

@echo off
REM========================================================================================
REM Install FireFox 16.0.2
REM========================================================================================
REM Script Details:
REM --------------
REM This script will:
REM + silently install or upgrade Firefox 16.0 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 + Changes the download option 'Always ask me where to save files' to enabled
REM + Works for Windows XP / 7 32-bit and 64-bit
REM .
REM========================================================================================
echo Installing Firefox - Please Wait.
echo Window will close after install is complete

REM Install Firefox 16
"%~dp0Firefox Setup 16.0.2.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"

REM Install 64-bit customisations
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"

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
if exist "%PUBLIC%\Desktop\Mozilla Firefox.lnk" del "%PUBLIC%\Desktop\Mozilla Firefox.lnk"

REM Return exit code to SCCM
exit /B %EXIT_CODE%

  • No labels