Software Deployment Tips

#4: How to make Firefox deployment with user settings easy!

Frank van Hoolwerff #SoftwareDeploymentTips 0 Comments

Software Deployment Tips

Internet Explorer, and now EDGE, you either love it or hate it”. But one of my favorite browsers is Mozilla Firefox. Firefox’s downside is, that it is nasty to manage in a bigger environment than your own workstation. Lucky me, because for Firefox deployment, I am using Easy Software Deployment. Let’s go and see in this fourth Software Deployment Tips blog, how we can easily deploy this Fox.

Grab your copy of Firefox over here. Then, find the latest version or the version that you would like to deploy. PS: the b in XXb stands for beta’s, so stay away from those in the production environment. We as Dutchies are gonna grab this one: https://ftp.mozilla.org/pub/firefox/releases/42.0/win32/nl/

Place the Setup file on our application share: \\app.local\root\applications\Mozilla\FireFox\42.0 (app.localroot is our DFS share). Please right click the setup and view the properties. If you have a button that says: unblock, HIT IT!

 

Start the Easy Software Deployment Console.

 

Select Add one or more installation items. Click Next.

 

Select Setup Executable. Click Next.

 

Select Computer Based, Click Next.

 

Select the installer we downloaded before and click Open.

 

You can change the name of the application to your liking, right now we keep it like this. Click Finish.

 

Hey! That’s a good idea ESD! Click OK.

 

Click Edit install Commands

 

Select FireFox Setup 42.0.exe and hit Edit.

 

Add the parameter –ms and hit OK.

 

Okay, so by default updates of Firefox is present, but we don’t want that in our production. We want to control the updates ourselves, so we need to push out three more files after setup is complete: mozilla.cfg ,local-settings.js and override.ini

 

 

Mozilla.cfg:

// disable default browser check

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

// disable application updates

pref(“app.update.enabled”, false);

// Set default homepage – users can change

defaultPref(“browser.startup.homepage”, “data:text/plain,browser.startup.homepage=https://www.easysoftwaredeployment.nl/“);

 

local-settings.js

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

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

 

override.ini

[XRE]

EnableProfileMigrator=false

 

To place these three files on the target agent, we create a little commandline: Set Files

copy “%~dp0local-settings.js” “%programfiles(x86)%\Mozilla Firefox\defaults\pref” /Y
copy “%~dp0Mozilla.cfg” “%programfiles(x86)%\Mozilla Firefox” /Y
copy “%~dp0Override.ini” “%programfiles(x86)%\Mozilla Firefox” /

 

Place these files next to our setup.exe

 

Go back to Easy Software Deployment and add an extra install command, click Add.

 

Select the Set Files.cmd. Click open.

 

Click OK.

Now we will to test the deployment. We do not want to test this on all the computers, so first we will select one computer the deployment will take place on.

Go to the Deployment Options Tab and select Start at OS Startup.

 

Hit the Availability Options Menu, press the button next to Computers:

 

Let’s select the Windows10Client. Click Add.

 

Click OK.

 

Hit the save and deploy button.

 

Now let’s login to our windows 10 Client that we deployed the software to. In the status of the agent we see that it is checking the setup files.

 

Then installing…

 

The application is installed.

 

But wait! Maybe you have divisions and you want different settings for the browser in different departments.

Since FireFox is file settings driven and not GPO, we can send these settings for our users specified on department level.

Step 1: create an AD security group, for example: GSEC_APPS_Firefox_Division_A
Step 2: create a settings file for the profiles called Profiles.ini

Profiles.ini :

[General]

StartWithLastProfile=1

 

[Profile0]

Name=default

IsRelative=1

Path=Profiles/Master.default

Default=1

 

Step 3: create a config file called prefs.js

Prefs.js:

# Mozilla User Preferences

 

/* Do not edit this file.

*

* If you make changes to this file while the application is running,

* the changes will be overwritten when the application exits.

*

* To make a manual change to preferences, you can visit the URL about:config

*/

 

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

user_pref(“app.update.channel”, “default”);

user_pref(“app.update.enabled”, false);

user_pref(“app.update.interval”, 0);

user_pref(“app.update.mode”, 0);

user_pref(“browser.bookmarks.restore_default_bookmarks”, false);

user_pref(“browser.cache.disk.capacity”, 358400);

user_pref(“browser.cache.disk.smart_size.first_run”, false);

user_pref(“browser.cache.frecency_experiment”, 2);

user_pref(“browser.download.importedFromSqlite”, true);

user_pref(“browser.hotfix.v20150225.01.complete”, true);

user_pref(“browser.migration.version”, 22);

user_pref(“browser.newtabpage.storageVersion”, 1);

user_pref(“browser.pagethumbnails.storage_version”, 3);

user_pref(“browser.places.smartBookmarksVersion”, 7);

user_pref(“browser.rights.3.shown”, true);

user_pref(“browser.search.update”, false);

user_pref(“browser.search.update.interval”, 0);

user_pref(“browser.startup.homepage”, “http://www.Provolve.nl”);

 

(you can add additional settings to your liking, click here for a complete list of settings.and add the settings that you would like for a complete list of settings http://kb.mozillazine.org/About:config_entries )

 

Step 4: create the following folder architecture on the share:

\\app.local\root\Applications\Mozilla\FireFox\Settings

\\app.local\root\Applications\Mozilla\FireFox\Settings\Department-A

 

\\app.local\root\Applications\Mozilla\FireFox\Settings\Department-A\Master.Default

 

Step 5: Create a little cmd file in the root of Department-A: Set.cmd

MD “%appdata%Mozilla\FireFox\Profiles\Master.default”

Copy “%~dp0Master.default” “%appdata%Mozilla\Firefox\Profiles\Master.default” /Y

Copy “%~dp0Profiles.ini” “%appdata%Mozilla\Firefox\Profiles” /Y

 

 

Open the Easy Software Deployment Console. Right click Installation Items and select New Installation Category.

 

Click OK

 

Select New Installation Category

 

Click OK.

 

Select New Installation Item

 

Just Select MSI, we have the option to select all kinds of applications after this dialogue.

 

Select User Based, click Next

 

Select the Set.cmd that we created at step 4 and click Open.

 

Give the script a name so we can recognize it. Click Finish.

 

Click OK

 

Select the Deployment Options Menu

 

Because the data needs to be placed under the user context, select RUN with Elevated Privileges.

 

Go tot the Availability Menu, hit the browse button next to Groups.

 

Select the Security group that we created in step 1. Click Add.

 

Click OK.

Hit the save and deploy button.

 

Now logon to a computer with a user account that is a member of the security group we specified earlier. The settings will be in place for the user.

 

We hope that you can put our information to use in your own environment for Firefox deployment, there is also a video of Easy Software Deployment in action.


Software Deployment Tips is a recurring blog series about current news in the software/app world.
Each time we will handle a situation, which is important and relevant at that time, and we will show you how to quickly take care of it using Easy Software Deployment.

Written by Frank van Hoolwerff, our Senior Technical Consultant.

Frankblauwrond2


So, did you enjoy this article on Firefox deployment on our Software Deployment Tips Blog?

twittermailchimpcardesd



Leave a Reply

Your email address will not be published. Required fields are marked *