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

搜索 | 用户支持

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

详细了解

Command line update of Firefox, NOT reinstall?

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

more options

I would like to silently update Firefox in the background without a user starting the browser (or even being logged in). Is there any way to do this??

On Windows, the Mozilla update service (if installed) makes Firefox updates silent, but updates are only discovered when the Browser is started and recognizes that there is an update. Not all machines have the service installed.

The latest Firefox installer can be run silently, but that installs the latest version over top the older version. It does not update. At the very least an "over-install" removes extensions in the "program directory/distribution/extensions" and puts an icon on the desktop if there isn't one. There are probably other subtle differences too (download size?).

At a minimum there should be something like an "/update" switch to have a similar effect as a user starting the browser and opening the "About" dialog window. It should initiate and complete (if the update service is installed) the internal update process but silently (i.e. without any windows). Even better would be if it didn't require the service when run elevated and didn't create a profile (e.g. for the case where it is run as SYSTEM).

If this exists, it is not well documented. If not, why not?? This is not an unusual request (based on my searches) or an unreasonable feature. If it uses the same, existing process that the GUI uses, then I don't see a security risk either.

Thanks.

I would like to silently update Firefox in the background without a user starting the browser (or even being logged in). Is there any way to do this?? On Windows, the Mozilla update service (if installed) makes Firefox updates silent, but updates are only discovered when the Browser is started and recognizes that there is an update. Not all machines have the service installed. The latest Firefox installer can be run silently, but that installs the latest version over top the older version. It does not update. At the very least an "over-install" removes extensions in the "program directory/distribution/extensions" and puts an icon on the desktop if there isn't one. There are probably other subtle differences too (download size?). At a minimum there should be something like an "/update" switch to have a similar effect as a user starting the browser and opening the "About" dialog window. It should initiate and complete (if the update service is installed) the internal update process but silently (i.e. without any windows). Even better would be if it didn't require the service when run elevated and didn't create a profile (e.g. for the case where it is run as SYSTEM). If this exists, it is not well documented. If not, why not?? This is not an unusual request (based on my searches) or an unreasonable feature. If it uses the same, existing process that the GUI uses, then I don't see a security risk either. Thanks.

被采纳的解决方案

The links to the latest Firefox versions have been decommissioned, so you need to go to the update directory of the version you need.

You need these three files in the updates\0 folder to update Firefox via a MAR file:

  • update.mar (renamed update partial/complete.mar)
  • update.status: pending + linefeed (0x0A) (use this data URI: data:text/plain,pending%0A)
  • update.version: xx.xx.xx (version to update to, e.g. 50.1.0)
定位到答案原位置 👍 1

所有回复 (3)

more options

You can only update Firefox from within a browser that is running. Otherwise you would have to download the corect MAR file and apply the update manually yourself.

wiki.mozilla.org/Software_Update wiki.mozilla.org/Software_Update:Manually_Installing_a_MAR_file wiki.mozilla.org/Software_Update:updates.xml_Format

You need these three files in the updates\0 folder to update Firefox via a MAR file:

  • update.mar (renamed update partial/complete.mar)
  • update.status: pending + linefeed (0x0A) (use this data URI: data:text/plain,pending%0A)
  • update.version: xx.xx.xx (version to update to, e.g. 50.1.0)
more options

That is potentially useful info but the links provided in the "Manually Installing a MAR file" page are 404's. I also can't find any outside references for where to get, or how to use MAR files that are newer than about 8 years ago.

Although the modification date stated on those wiki pages is 2016, there are references up to only v.33 of Firefox. That and the broken links and lack of outside verification don't give me confidence that this information is still valid.

more options

选择的解决方案

The links to the latest Firefox versions have been decommissioned, so you need to go to the update directory of the version you need.

You need these three files in the updates\0 folder to update Firefox via a MAR file:

  • update.mar (renamed update partial/complete.mar)
  • update.status: pending + linefeed (0x0A) (use this data URI: data:text/plain,pending%0A)
  • update.version: xx.xx.xx (version to update to, e.g. 50.1.0)