Here is an example of how to use the installation cfg file
Take the .txt extension of both of the attached files and place them in the 
same folder as your installer and change the variable “version” to match the 
version number in the installer name as appropriate.

The command line in the batch file is the key.

"%INST%Firefox Setup %Version%.exe"  /INI="%INST%InstallConfig.ini"
This is used only during installation

The Mozilla.cfg is used when you launch firefox and must be modified and 
included in your installation

Where %INST% is the fully qualified path of where the files are as derived from 
the %~dp0, note this creates a variable WITH a trailing backslash.

The use of /INI  makes the installation silent so you do NOT have to use –ms. 
But if you are not using  /INI and want a silent installation then –ms does 
give you a silent installation.

The contents of the installconfig.ini is basically the example file on the 
Mozilla support site, but with 1 line uncommented by removing the semi-colon (;)

That line is MaintenanceService=False.

This line makes the MaintenceService not install.

If you are managing the installations of Firefox in your enterprise this is 
particularly important.

Because if you don’t disable the installation of the service then when you do 
the installs/uninstalls a reboot is normally required.

Without the service being installed this usually does NOT require a reboot.

In our environment we deploy with Microsoft SCCM with a package that UNINSTALLS 
Firefox first silently.

Then we install the new version. We don’t use the ESR, but instead we use RR. 
We are fortunate to have the PolicyPak Application Manager product which gives 
us group policy based management of Firefox
as well as many other applications, this is a commercial product but very 
robust and their support is outstanding.

With PolicyPak the group policy based settings are applied when the user starts 
Firefox, it actually modifies the prefs.js BEFORE launching Firefox insuring 
that any settings you are managing that are changed by the user during a 
session will be reset on launch of Firefox, it also allows you to LOCK them so 
they can’t be changed if you so desire.

With a group policy based solution I can change settings for all users and have 
them take effect within a couple of hours, and I can have different settings 
for different geographical sites, such as different proxy settings, which we 
have, kind of amazing when you come to think of it. As our laptop users travel 
from site to site their settings change to meet the environment. No calls to 
the help desk if you know what I mean!!!

Another alternative is Mike Kaply’s CCK2. I believe it is free, but support has 
a modest cost, very reasonable under the circumstances.

Hope this helps. Good luck on the continuing adventure of enterprise Firefox 
management

Thanks to Roger Crawford for a great .cfg example

Regards,

John Delise
Windows Deployment Engineer

VW Credit, Inc.

[VW-Credit-Inc.-Logo]


From: Enterprise [mailto:enterprise-boun...@mozilla.org] On Behalf Of Crawford, 
Roger
Sent: Thursday, December 1, 2016 11:06 AM
To: William Spratt <william.spr...@fera.co.uk>; enterprise@mozilla.org
Subject: Re: [Mozilla Enterprise] two cmd line install switches query

Those would be CFG file settings.

// Disable updater
lockPref("app.update.enabled", false);

// make absolutely sure it is really off
lockPref("app.update.auto", false);
lockPref("app.update.mode", 0);
lockPref("app.update.service.enabled", false);




To give you an idea, here’s my Mozilla.cfg:


//Firefox Default Settings
// set Firefox Default homepage
defaultPref("browser.startup.homepage","data:text/plain,browser.startup.homepage=http://www.apus.edu";);

// Disable Default Browser check
lockPref("browser.shell.checkDefaultBrowser", false);

// Don't show WhatsNew on first run after every update
pref("browser.startup.homepage_override.mstone","ignore");

// Disable updater
lockPref("app.update.enabled", false);

// make absolutely sure it is really off
lockPref("app.update.auto", false);
lockPref("app.update.mode", 0);
lockPref("app.update.service.enabled", false);

// Don't show 'know your rights' on first run
pref("browser.rights.3.shown", true);

// Disable health reporter
lockPref("datareporting.healthreport.service.enabled", false);

// Disable all data upload (Telemetry and FHR)
lockPref("datareporting.policy.dataSubmissionEnabled", false);

// Disable crash reporter
lockPref("toolkit.crashreporter.enabled", false);
Components.classes["@mozilla.org/toolkit/crash-reporter;1"].getService(Components.interfaces.nsICrashReporter).submitReports
 = false;

// Sets browser search code
pref("browser.search.countryCode", "US");

// Sets browser region
pref("browser.search.region", "US");
pref("browser.newtabpage.enhanced", true);

// Removes Firefox default Smart Bookmarks
pref("removeSmartBookmarks", true);
pref("removeDefaultBookmarks", true);

// Disable share page
lockPref("disableSharePage", true);

// Disables developer tools
lockPref("removeDeveloperTools", true);

lockPref("disableResetFirefox", true);

pref("noUpgradePage", true);

lockPref("removeSetDesktopBackground", true);

lockPref("browser.search.defaultenginename.US", "Google");
lockPref("browser.search.defaultenginename", "Google");

pref("browser.search.order.1", "Google");
pref("browser.search.order.2", "Bing");

// Don't ask to install the Flash Plugin
pref("plugins.notifyMissingFlash", false);

lockPref("services.sync.enabled", false);

// disable history, download, cache, password and settings
//pref("browser.privatebrowsing.autostart", true)
// clear cookies
pref("privacy.clearOnShutdown.cookies", true)




From: Enterprise 
<enterprise-boun...@mozilla.org<mailto:enterprise-boun...@mozilla.org>> on 
behalf of William Spratt 
<william.spr...@fera.co.uk<mailto:william.spr...@fera.co.uk>>
Date: Thursday, December 1, 2016 at 11:57 AM
To: "enterprise@mozilla.org<mailto:enterprise@mozilla.org>" 
<enterprise@mozilla.org<mailto:enterprise@mozilla.org>>
Subject: [Mozilla Enterprise] two cmd line install switches query

Hi All,

I can successfully get the both switches (/S and –ms) to work for Firefox to 
install silently.

However, I can’t get the –setDefaultBrowser (to automatically make Firefox the 
default browser on install) and MaintenanceService=false (to stop the 
maintenance service software to install) switches to work.  Has anyone managed 
this?

Regards

Will

[ttp://fera.co.uk/files/signatures/Fera-Logo.jpg]

Will Spratt
IT Scientific Support Specialist
Fera Science Ltd.


william.spr...@fera.co.uk<mailto:william.spr...@fera.co.uk> | Tel +44 (0)1904 
46 2631 | Mob +44 (0)7810855621

www.fera.co.uk<http://www.fera.co.uk/> | 
Twitter<https://twitter.com/ferascience> | 
LinkedIn<https://www.linkedin.com/company/fera-science> | 
YouTube<http://www.youtube.com/user/FeraUK1>

[riGen-Logo]

Introducing OriGen - Fera’s new contamination traceback service
Utilising whole genome sequencing we can help you prevent future product recalls
For more details click 
here<http://fera.co.uk/food-safety-quality/riskidentification/origen.cfm>.

This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.
@echo off
cls
SET Version=50.0.2
Title Installing Firefox %version%
set AppName=Mozilla Firefox %version% 
set INST=%~dp0

:: Installation

        "%INST%Firefox Setup %Version%.exe"  /INI="%INST%InstallConfig.ini"
        
        SET EXITCODE=%ERRORLEVEL%
pause
Timeout /t 10

[Install]
;
; Remove the semicolon (;) to un-comment a line.
; Neither of these folder directives work if there is a space in the folder 
name, even if surronded with single or double quotes.
; The name of the directory where the application will be installed in the
; system's program files directory. The security
; context the installer is running in must have write access to the
; installation directory. Also, the directory must not exist or if it exists
; it must be a directory and not a file. If any of these conditions are not met
; the installer will abort the installation with an error level of 2. If this
; value is specified then InstallDirectoryPath will be ignored.
; InstallDirectoryName=Mozilla Firefox

; The full path to the directory to install the application. The security
; context the installer is running in must have write access to the
; installation directory. Also, the directory must not exist or if it exists
; it must be a directory and not a file. If any of these conditions are not met
; the installer will abort the installation with an error level of 2.
; InstallDirectoryPath=c:\PROGRA~1\Firefox

; By default all of the following shortcuts are created. To prevent the
; creation of a shortcut specify false for the shortcut you don't want created.

; Create a shortcut for the application in the current user's QuickLaunch
; directory.
; QuickLaunchShortcut=false

; Create a shortcut for the application on the desktop. This will create the
; shortcut in the All Users Desktop directory and if that fails this will
; attempt to create the shortcuts in the current user's Start Menu directory.
; DesktopShortcut=true

; Create shortcuts for the application in the Start Menu. This will create the
; shortcuts in the All Users Start Menu directory and if that fails this will
; attempt to create the shortcuts in the current user's Start Menu directory.
StartMenuShortcuts=false

; The directory name to use for the StartMenu folder (not available with
; Firefox 4.0 and above - see note below).
; note: if StartMenuShortcuts=false is specified then this will be ignored.
; StartMenuDirectoryName=Mozilla Firefox

; The MozillaMaintenance service is used for silent updates and may be used
; for other maintenance related tasks.  It is an optional component. 
; This option can be used in Firefox 16 or later to skip installing the service.
MaintenanceService=false
_______________________________________________
Enterprise mailing list
Enterprise@mozilla.org
https://mail.mozilla.org/listinfo/enterprise

To unsubscribe from this list, please visit 
https://mail.mozilla.org/listinfo/enterprise or send an email to 
enterprise-requ...@mozilla.org with a subject of "unsubscribe"

Reply via email to