为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

How do I preconfigure proxy settings and home page during setup? I need to do this for an offline automated install.

  • 2 个回答
  • 2 人有此问题
  • 13 次查看
  • 最后回复者为 cor-el

more options

I run application for clients that automatically installs windows and applications. I currently install Firefox silently and it installs properly, but without any settings configured. I would like to preconfigure settings for my customer so that techs and users don't have to waste time configuring those settings manually.

In particular, I need to set the home page to the organization home page, and I need to setup up the network configuration to point to an automatic proxy configuration URL. I would also like to pre-populate bookmarks with specific URL's for my customer.

I run application for clients that automatically installs windows and applications. I currently install Firefox silently and it installs properly, but without any settings configured. I would like to preconfigure settings for my customer so that techs and users don't have to waste time configuring those settings manually. In particular, I need to set the home page to the organization home page, and I need to setup up the network configuration to point to an automatic proxy configuration URL. I would also like to pre-populate bookmarks with specific URL's for my customer.

所有回复 (2)

more options

You probably can set the home page and proxy preferences in a test installation, exit Firefox, then push out the prefs.js file containing the modified preferences as a post-installation step. Bookmarks are stored in places.sqlite, which you also could copy to the systems post-installation. Probably the trickiest part in that approach is figuring out the random name of the profile folder...

Would be easier if you could bundle that all in in advance. The Mozilla wiki lists resources that might be useful:

https://wiki.mozilla.org/Deployment:Deploying_Firefox#Firefox_Customization_.28CCK_and_Repackaging_Tools.29

more options

You can use a mozilla.cfg file in the Firefox program folder to lock prefs or specify new (default) values.

Place a file local-settings.js in the defaults\pref folder where you also find the file channel-prefs.js to specify using mozilla.cfg.

pref("general.config.filename", "mozilla.cfg");
pref("general.config.obscure_value", 0); // use this to disable the byte-shift

See:

You can use these functions in mozilla.cfg:

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