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

Application Packaging Software / Tools

There are a variety of tools available to manage application and package or re-package the executable installer files.I am going to discuss few popular tools available and used by IT folks.

1) Admin Studio by Flexera Software, among the most popular tool available its a complete suite , to create an MSI installer “Installshield” is used to customize your executable with custom settings . Tools have capabilities to manage App-V, ThinApp, ACT and numerous more. AdminStudio provides enterprise IT teams with the most advanced application packaging tools to efficiently prepare reliable application packages for software deployment with a complete set of automated MSI packaging, customization, testing and reporting capabilities.

For feature and free trial version visit  :  http://www.flexerasoftware.com/enterprise/products/application-packaging/adminstudio/

2)Wise Package Studio by Symantec , was a leader in the market for decades but Symantec has put an end to this product 😦

Wise Package Studio is a software management solution that supports the needs of application integration teams. Wise Package Studio provides a complete set of tools to support every phase of the application integration lifecycle, including repackaging, package quality assurance, and release management.

3) PACE Suit by Infopulse , Repackage any existing installation into Windows Installer or a virtual format. PACE Suite provides an easy-to-use and powerful repackaging tool.

For feature and free trial version visit : http://pacesuite.com/features/

4) EMCO MSI Package Builder by EMCO Software , It is an installation authoring tool designed to help administrators to create, maintain and distribute Windows Installer packages. It can be used to create MSI packages easily, to modify existing installations and to repackage setups from the EXE to MSI format. The application is available in the following editions.

For feature and free version visit : http://emcosoftware.com/msi-package-builder

5) Advanced Installer by Caphyon , installer simplifies the process of building Windows Installer packages by providing a very easy to use, high-level interface to the underlying technology. The program implements all the Windows Installer rules and follows all the advised best practices.

For feature and free version visit:  http://www.advancedinstaller.com/features.html