Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

Αναζήτηση στην υποστήριξη

Προσοχή στις απάτες! Δεν θα σας ζητήσουμε ποτέ να καλέσετε ή να στείλετε μήνυμα σε κάποιον αριθμό τηλεφώνου ή να μοιραστείτε προσωπικά δεδομένα. Αναφέρετε τυχόν ύποπτη δραστηριότητα μέσω της επιλογής «Αναφορά κατάχρησης».

Learn More

I need to do a silent install that installs preferences on the specific machine.

  • 1 απάντηση
  • 1 έχει αυτό το πρόβλημα
  • 4 προβολές
  • Τελευταία απάντηση από cor-el

more options

I am writing a silent install for corporate use. I have used the -ms switch to get the installer working.

However, there are several options that I need to automatically update using the prefs.js file. (The most important is to turn off the three automatic updates, but there are also other prefs.js changes that affect speed and browsing environment.)

The problem is that this is stored in a %APPDATA%\Mozilla\Firefox\Profiles\<profile folder>

but this folder is not created until after the first login. By then the user has already set other defaults.

The question is how can I run the install to include these necessary defaults?

I am writing a silent install for corporate use. I have used the -ms switch to get the installer working. However, there are several options that I need to automatically update using the prefs.js file. (The most important is to turn off the three automatic updates, but there are also other prefs.js changes that affect speed and browsing environment.) The problem is that this is stored in a %APPDATA%\Mozilla\Firefox\Profiles\<profile folder> but this folder is not created until after the first login. By then the user has already set other defaults. The question is how can I run the install to include these necessary defaults?

Τροποποιήθηκε στις από το χρήστη amackley

Όλες οι απαντήσεις (1)

more options

You can initialize prefs in two ways. Via an mozilla.cfg configuration file or via a user.js file in the default template location (C:\Program Files\Mozilla Firefox\defaults\profile\user.js)

See http://kb.mozillazine.org/Locking_preferences

You can use these functions in mozilla.cfg:

defaultPref(); // set new default value
pref();        // set pref, but allow changes
lockPref();    // lock pref, disallow changes