Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

update user profiles on first run of new install

  • 3 回覆
  • 4 有這個問題
  • 12 次檢視
  • 最近回覆由 cor-el

more options

After upgrading to a newer version of Firefox (25.0.1) any of the existing user profiles are not getting updated settings...specificly

During the install I have added some new changes for the "default user", if I log start FF as a "new" user (with no profiles under the %appData%\Mozilla folder structure my settings work. But if a profile exists they are not taking effect.

I have moved my Pref Files to:
%ProgramFiles(x86)%\Mozilla Firefox\Browser\defaults\Preferences\local-settings.js
%ProgramFiles(x86)%\Mozilla Firefox\Browser\defaults\profile\secmod.db <<<=== Is not being copied
%ProgramFiles(x86)%\Mozilla Firefox\mozilla.cfg
%ProgramFiles(x86)%\Mozilla Firefox\Browser\override.ini

Mozilla.cfg

//Firefox Default Settings

// set Firefox Default homepage
//pref("browser.startup.homepage","http://www.XXX.YYY");

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

// disable application updates
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);

//Enables SharePoint Single Sign On
pref("network.automatic-ntlm-auth.trusted-uris", "https://portal.XXX.YYY");

Override.ini

[XRE]
EnableProfileMigrator=0

Local-settings.js

pref("general.config.obscure_value", 0);
pref("general.config.filename", "mozilla.cfg");
defaultpref("browser.startup.homepage", "http://dma.XXX.YYY"); 
defaultPref("browser.newtab.url", "about:blank");
lockPref("app.update.auto", false);
lockPref("app.update.enabled", false);
After upgrading to a newer version of Firefox (25.0.1) any of the existing user profiles are not getting updated settings...specificly During the install I have added some new changes for the "default user", if I log start FF as a "new" user (with no profiles under the %appData%\Mozilla folder structure my settings work. But if a profile exists they are not taking effect. I have moved my Pref Files to:<br /> %ProgramFiles(x86)%\Mozilla Firefox\Browser\defaults\Preferences\local-settings.js<br /> %ProgramFiles(x86)%\Mozilla Firefox\Browser\defaults\profile\secmod.db <<<=== Is not being copied<br /> %ProgramFiles(x86)%\Mozilla Firefox\mozilla.cfg<br /> %ProgramFiles(x86)%\Mozilla Firefox\Browser\override.ini Mozilla.cfg <pre><nowiki>//Firefox Default Settings // set Firefox Default homepage //pref("browser.startup.homepage","http://www.XXX.YYY"); // disable default browser check pref("browser.shell.checkDefaultBrowser", false); pref("browser.startup.homepage_override.mstone", "ignore"); // disable application updates 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); //Enables SharePoint Single Sign On pref("network.automatic-ntlm-auth.trusted-uris", "https://portal.XXX.YYY"); </nowiki></pre> Override.ini <pre><nowiki>[XRE] EnableProfileMigrator=0</nowiki></pre> Local-settings.js <pre><nowiki>pref("general.config.obscure_value", 0); pref("general.config.filename", "mozilla.cfg"); </nowiki></pre> defaultpref("browser.startup.homepage", "http://dma.XXX.YYY"); defaultPref("browser.newtab.url", "about:blank"); lockPref("app.update.auto", false); lockPref("app.update.enabled", false);

由 cor-el 於 修改

所有回覆 (3)

more options

Go to the Firefox tab in the far left corner and go to sync. It should get you all set up there.

more options

While this is great for one user I have hundreds that will potentially need this, I was hoping for something more "programmatic"

ie something I can put in one of the Prefs files!

more options

The local-settings.js file should be in defaults/pref and the file should only contain the two lines to specify the mozilla.cfg file.
Make sure to use the proper case for files and folders and pref function names.
The file shouldn't contain the last 4 defaultPref() and lockPref() calls (note that defaultpref() has the wrong case).

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

I don't know why initializing a new profile (secmode.db) isn't working if that is what is happening.
You can make changes to existing profile this way.
You can only change prefs for existing profiles with pref() calls in mozilla.cfg.

You can initialize a profile by creating a browser\defaults\profile folder in the Firefox program folder (C:\Program Files\Mozilla Firefox\) and place files like a user.js or a bookmarks.html file in it.
You can create a defaults\preferences folder to initialize prefs.