How to create Mozilla Firefox Application Package ?

This blog is intended to package a  third party application(Mozilla Firefox) via scripting language and deploy using system center 2012 configuration manager application deployment manager. This blog consists of step by step process to create a third party application.

We are creating the application for Required deployment of Mozilla Firefox via SCCM . In the required scenario, an application will be deployed in software center and will automatically installed once the user logged-on the installation will be silent.If the application is running it will silently fail’s in software center and will again check to install based on the “Application Deployment Evaluation Cycle”.

Steps to create Mozilla Firefox Package

  • Download the Installation file for multi-lingual languages as (Dutch, French, Finnish, Spanish, Portuguese, English, German, Italian)
  • Create a file to import user data and set default homepage.
  • Disable auto-update functionality.
  • Script Wrapper.

1) Create a working folder for saving the files into (ex: C:\Package\Mozilla_Firefox_Req)

mozilla.png

2) Download the installation file from location:https://www.mozilla.org/en-US/firefox/all/

3) Create a new text file called “Override.ini” and copy in the following location and should have this content as

[XRE]

EnableProfileMigrator=false

4) Create a new text file called “local-settings.js” and copy in the following location and should have this content as

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

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

5) Create a new text file called “Mozilla.cfg” and copy in the following location and should have this content as

//Firefox Default Settings

// disable default browser check

 pref(“browser.shell.checkDefaultBrowser”, false);

pref(“browser.startup.homepage _override.mstone”,”ignore”);

// disable application updates

lockPref(“app.update.auto”, false);

lockPref(“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);

6) Create a new text file called “Install.cmd” and copy in the following location and should have this content as

for /f “tokens=4” %%a in (‘reg query “HKLM\ SOFTWARE\ Mozilla\Mozilla Firefox” /v CurrentVersion’) do set result_locale=%%a

for/f “tokens=4” %%a in (‘reg query “HKEY_LOCAL_MACHINE\SOFTWARE\ Wow6432Node\Mozilla\ Mozilla Firefox” /v CurrentVersion’) do set result_locale=%%a

set result_val=%result_locale%

If “%result_val%” NEQ “” set check=%result_val:~1,2%

If “%result_val%” EQU “” set check=none

Rem Checking for all languages

if %check%==nl (“%~dp0Firefox Setup 28.0_nl.exe” -ms)

if %check%==fi (“%~dp0Firefox Setup 28.0_fi.exe” -ms)

if %check%==fr (“%~dp0Firefox Setup 28.0_fr.exe” -ms)

if %check%==de (“%~dp0Firefox Setup 28.0_de.exe” -ms)

if %check%==it (“%~dp0Firefox Setup 28.0_it.exe” -ms)

if %check%== es (“%~dp0Firefox Setup 28.0_es.exe” -ms)

if %check%== pt (“%~dp0Firefox Setup 28.0_pt.exe” -ms)

if %check%==en (“%~dp0Firefox Setup 28.0.exe” -ms)

REM Install Firefox 28.0 in Silent mode

REM Install 32-bit customisations

 if exist “%programfiles%\Mozilla Firefox\” copy /Y “%~dp0override.ini” “%programfiles%\Mozilla Firefox\”

 if exist “%programfiles%\Mozilla Firefox\Browser\” 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\”

if exist “%ProgramFiles(x86)%\Mozilla Firefox\Browser\” 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”

7) Create a new text file called “Uninstall.cmd” and copy in the following location and should have this content as

if exist “%programfiles%\Mozilla Firefox\uninstall” cd “%programfiles%\Mozilla Firefox\uninstall”

if exist “%ProgramFiles(x86)%\Mozilla Firefox\uninstall” cd  “%ProgramFiles(x86)%\Mozilla Firefox\uninstall”

helper.exe /S

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

mozilla-1.png

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s