搜尋 Mozilla 技術支援網站

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

了解更多

how to find your firefox version

  • 6 回覆
  • 2 有這個問題
  • 6 次檢視
  • 最近回覆由 bitlord

more options

Hello, I'm tring to write a script to check the version of Firefox on my computers. I know that if you do this firefox -version you get the Firefox version. The issue is that it doesn't tell me if Firefox is a ESR or not. Is there a command on the command line that will tell me this? Is there a file I could look at?

Hello, I'm tring to write a script to check the version of Firefox on my computers. I know that if you do this firefox -version you get the Firefox version. The issue is that it doesn't tell me if Firefox is a ESR or not. Is there a command on the command line that will tell me this? Is there a file I could look at?

所有回覆 (6)

more options

you can see the releases of firefox here: https://ftp.mozilla.org/pub/mozilla.org/firefox/releases/

more options

Thank you for replying. Though the link doen't tell me how to check to see if it is a ESR version. for example this link gives a nice list http://en.wikipedia.org/wiki/Firefox_release_history has a nice list. for example 17.0 and 17.0.1 have both normal and ESR versions.

more options

Firefox 17.0 and 17.0.1 were on the Release channel at time and the ESR channel continued as of 17.0.2 to the current 17.0.4.

The next Major version that will be in ESR support is likely not until Firefox 24.0

more options

This is a Windows-hosted scripting tool, so you can read the registry and open text files?

You can piece together the path to the Firefox program folder using this key:

HKEY_CURRENT_USER\Software\Mozilla\Mozilla Firefox

provides the value CurrentVersion

For example: CurrentVersion=19.0.2 (en-US)

With that information, then, this key

HKEY_CURRENT_USER\Software\Mozilla\Mozilla Firefox\19.0.2 (en-US)\Main

provides the value InstallDirectory

For example: C:\Program Files (x86)\Mozilla Firefox

If you add "\defaults\pref\channel-prefs.js" to that you get a file with a line similar to the following:

pref("app.update.channel", "release");

That second value corresponds to the type of install it is. See: http://kb.mozillazine.org/App.update.channel

If that seems like a huge PITA, you could vote for this bug: Bug 726781 – No way to distinguish between Firefox 10 and Firefox 10 ESR via the registry. Note that you vote in the top section where it says Importance. It's not helpful to add "me too" comments at the bottom.

more options

You can check the application.ini file in the Firefox program folder.

SourceRepository=http://hg.mozilla.org/releases/mozilla-esr17
more options

Thanks everyone for posting. I don't have an answer for my issue but I don't have many servers with Firefox installed so I will just have to manually check.