Hi,

I am trying to get Mozilla Firefox into a deployable package(msi) which also sets some defaults like the Homepage, turn off auto updates and set the proxy to a .pac file.

I have read a lot of information on the web about different ways of doing it and the only way that has come close to helping me achieve this is the use of 3 files, "mozilla.cfg", "local-settings.js" and override.ini.

Has anyone successfully packaged Firefox with a snapshot and by using these 3 files?

I am very close to completing it but have not been successful when following what all the guides say.

To begin with I performed a setup capture on the installation of firefox from the setup.exe.

When I then installed this it worked when run as any user however, there were some settings not set that needed to be.

I created the "mozilla.cfg" file with the following contents -installed to C:\Program Files\Mozilla Firefox

// Firefox

// set Firefox Default homepage
pref("browser.startup.homepage","http://www.test.co.uk");

// disable default browser check
pref("browser.shell.checkDefaultBrowser", false);
pref("browser.startup.homepage_override.mstone", "ignore");

// disable application updates
pref("app.update.auto", false);
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);
 
//Firefox Default Settings
//set proxy server settings, choose whatever is required by your organization
pref("network.cookie.prefsMigrated", true);
pref("network.proxy.autoconfig_url", "http://test/default.pac");
pref("network.proxy.type", 2);

And I used a program called "Byte Shifter.exe" to encode the file and shift the bytes by 13.

I also created a "local-settings.js" file with the following contents installed to "C:\Program Files\Mozilla Firefox\defaults\pref"

pref("general.config.obscure_value", 0);
pref("general.config.filename", "mozilla.cfg");

And finally I created a file called "override.ini" with the following contents installed to "C:\Program Files\Mozilla Firefox"

[XRE]
// Disable the Profile Migration Window at first FF startup
EnableProfileMigrator=false

HOWEVER, this didn't work for me, none of the settings in the CFG file are being applied.

So what I did next was experiment a little and I copied the contents of the "mozilla.cfg" file into the "local-settings.js" file so now "local-settings.js" contains a combination of both files.

When I now test Firefox it opens successfully and when I check the options the "Auto Update" is disabled and the proxy is set correctly. However, the Homepage hasn't been set and Firefox just opens with a blank page.

Anyone got any tips or advice?

Thanks

 

Answer Summary:
Cancel
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Community Chosen Answer

2

I have figured it out.

I was very close, just had to edit the first couple of lines of the "local-settings.js" file installed to "C:\Program Files\Mozilla Firefox\defaults\pref" to be as follows -

// Firefox
pref("general.config.obscure_value", 13);
pref("general.config.filename", "mozilla.cfg");

This then read the "mozilla.cfg" file which is installed to installed to "C:\Program Files\Mozilla Firefox" and had the following contents -

// Firefox

// set Firefox Default homepage
pref("browser.startup.homepage","http://www.test.co.uk");

// disable default browser check
pref("browser.shell.checkDefaultBrowser", false);
pref("browser.startup.homepage_override.mstone", "ignore");

// disable application updates
pref("app.update.auto", false);
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);
 
//Firefox Default Settings
//set proxy server settings, choose whatever is required by your organization
pref("network.cookie.prefsMigrated", true);
pref("network.proxy.autoconfig_url", "http://test/default.pac");
pref("network.proxy.type", 2);

And the override file stayed as it was.

This is now working for every user.

Answered 05/29/2012 by: mark_holland21
Fourth Degree Green Belt

Please log in to comment

Answers

1

For Re-Packaging Firefox, you can follow this link:

http://msiworld.blogspot.com.au/2012/01/packaging-mozilla-firefox-901.html

Answered 06/06/2012 by: piyushnasa
Red Belt

Please log in to comment
0
Adjunct to what is said above, if you are installing the latest standard version, in an enterprise, use the PSAppDeployToolkit method I've sketched-out in Microsoft Technet.


Good luck.
Answered 07/18/2014 by: topazcaleb
White Belt

Please log in to comment
Answer this question or Comment on this question for clarity

Share