Silent Remote Installation of Mozilla Firefox 3.x

This is an example of how to deploy firefox remotely to your windows based domain client machines using psexec with proxy settings. First you need to download the latest 7-zip from here: after you have that installed find your firefox installer package. As of this articles writing the name of this file was “Firefox Setup 3.6.4.exe”. Right-click on it and choose the menu item under 7 zip called: Extract to Firefox Setup 3.6.4″

Once the package unzips go into the directory called Firefox Setup 3.6.4 and have a look around.

Home Page Setup:
The first folder is called “localized” open the file called “” with wordpad and edit the urls to reflect the homepage that you want your clients to have. In my case the file looked like this when I was done…


There is also a prefs.js file in the localized\defaults\profile directory. You can add entries here is you like and they will be the default preferences. Having a look at about:config will give an idea of options that you can set:

Proxy Settings:
The proxy settings can be set in all.js file found in the \nonlocalized\greprefs folder. Search for the phrase proxy.type to jump to the part we are looking for. By default the value is 0 (no proxy). Setting the value to 1 will enable the proxy. If you have auto detection setup on your network you can use 4. Firefox 3 added the option of 5, which will use your “system” proxyIf your proxy was then you would make the file look like this…

pref("network.proxy.type", 1);
pref("network.proxy.ftp", "");
pref("network.proxy.ftp_port", 8080);
pref("network.proxy.gopher", "");
pref("network.proxy.gopher_port", 8080);
pref("network.proxy.http", "");
pref("network.proxy.http_port", 8080);
pref("network.proxy.ssl", "");
pref("network.proxy.ssl_port", 8080);
pref("network.proxy.socks", "");
pref("network.proxy.socks_port", 1080);
pref("network.proxy.socks_version", 5);
pref("network.proxy.socks_remote_dns", false);
pref("network.proxy.no_proxies_on", "localhost,,. ,");

There are a lot other settings in this file. Take a long look at it and make any changes you would like.
Disabling Suggested Searches
If you do not want hundreds of queries for search suggestions every time a single letter is typed in the search bar then open this file: nonlocalized\defaults\pref\firefox.js and search for “suggest”. You should find: pref(“”, true);
Change it to: pref(“”, false);
Disabling Application Updates
When installing Firefox in an enterprise setting you do not want it to look for updates when a regular/non-admin user is logged on (You don’t let your users logon with administrators accounts do you?). In the firefox.js there is a line that looks like this: pref(“app.update.enabled”, true); Change that to: pref(“app.update.enabled”, false); and then your clients will not check for updates automatically.
There are many other preferences in this file. Take a look at it and make any other changes you like.

Remote Deployment
Use the method that I share on this page:

The batch file for firefox would be a little different than the example in that article. Something like this should work…

echo “checking for Installers directory on the target…”
if not exist \\%1\C$\installers mkdir \\%1\C$\installers
if not exist \\%1\C$\installers\firefox3.6.4 mkdir \\%1\C$\installers\firefox3.6.4
echo “copying Firefox install to install directory…”
xcopy “\\MyServer\Updates\firefox3.6.4\*” “\\%1\C$\installers\firefox3.6.4\” /e /y
echo “Installing Firefox…”
psexec.exe \\%1 “c:\installers\firefox3.6.4\setup.exe” -ms
echo “All Done.”
Credits: (For the silent install switch)


About Craig Szymanski

Systems Administrator Photography Enthusiast
This entry was posted in Software Installation, Windows and tagged , , . Bookmark the permalink.

Leave a Reply

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

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

Google+ photo

You are commenting using your Google+ 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 )


Connecting to %s