X
Tippen Sie hierhin, um die Version dieser Website für Mobilgeräte aufzurufen.

Hilfeforum

Programatically Get the Latest Version Number of Firefox

Veröffentlicht

How can I parse the version number of Firefox programatically.

So, I don't have to visit the page every time. All I would have to do is run the script, and it will give me the latest version.

http://download.cdn.mozilla.net/pub/mozilla.org/firefox/releases/latest/update/win32/en-US/

The file will always have ".complete.mar" in it. It's the only file with the word "complete" under this directory. How can I parse the version "40.0.2" from it.

How can I parse the version number of Firefox programatically. So, I don't have to visit the page every time. All I would have to do is run the script, and it will give me the latest version. http://download.cdn.mozilla.net/pub/mozilla.org/firefox/releases/latest/update/win32/en-US/ The file will always have ".complete.mar" in it. It's the only file with the word "complete" under this directory. How can I parse the version "40.0.2" from it.
FredMcD
  • Top 10 Contributor
4272 Lösungen 59922 Antworten
Veröffentlicht

Type about:preferences#advanced<enter> in the address bar.

Under Advanced, Select Update. Select Check for updates, but let me choose whether to install them

Type '''about:preferences#advanced'''<enter> in the address bar. Under '''Advanced,''' Select '''Update.''' Select '''Check for updates, but let me choose whether to install them'''
cor-el
  • Top 10 Contributor
  • Moderator
17586 Lösungen 159088 Antworten
Veröffentlicht

The 'all' page has a download link that includes the version, so maybe use that page instead to get the version information.

The 'all' page has a download link that includes the version, so maybe use that page instead to get the version information. *https://www.mozilla.org/en-US/firefox/all/
jscher2000
  • Top 10 Contributor
8797 Lösungen 71970 Antworten
Veröffentlicht

What kind of script -- something that runs in Firefox itself, or Windows Powershell, or ??

Perhaps it's simpler if you are going to retrieve a page and parse it as text to use this shorter one: http://download.cdn.mozilla.net/pub/mozilla.org/firefox/releases/latest/win32/en-US/

Or you do not intend to automate it, you could just bookmark this page and look at it from time to time when you're curious: https://www.mozilla.org/firefox/releases/

What kind of script -- something that runs in Firefox itself, or Windows Powershell, or ?? Perhaps it's simpler if you are going to retrieve a page and parse it as text to use this shorter one: http://download.cdn.mozilla.net/pub/mozilla.org/firefox/releases/latest/win32/en-US/ Or you do not intend to automate it, you could just bookmark this page and look at it from time to time when you're curious: https://www.mozilla.org/firefox/releases/
Veröffentlicht

Fragesteller

jscher2000 said

Yes, its Windows PowerShell script, and automate it so running the script would give the latest version of Firefox. The goal is to grab the latest file version dynamically, and download the file .mar file for manual update.

Thank you.

<blockquote> ''jscher2000 [[#answer-772230|said]]'' </blockquote> Yes, its Windows PowerShell script, and automate it so running the script would give the latest version of Firefox. The goal is to grab the latest file version dynamically, and download the file .mar file for manual update. Thank you.

Geändert am von SAI157

jscher2000
  • Top 10 Contributor
8797 Lösungen 71970 Antworten
Veröffentlicht

Since PowerShell would use the internals of Windows for the page and file retrieval, you probably would have better luck on a site devoted to scripting those components.

Since PowerShell would use the internals of Windows for the page and file retrieval, you probably would have better luck on a site devoted to scripting those components.
Veröffentlicht

Fragesteller

jscher2000 said

Could you please elaborate on it, the last part? I didn't quite understand it. Thank you!

<blockquote> ''jscher2000 [[#answer-772458|said]]'' </blockquote> Could you please elaborate on it, the last part? I didn't quite understand it. Thank you!
jscher2000
  • Top 10 Contributor
8797 Lösungen 71970 Antworten
Veröffentlicht

sayyam197 said

Could you please elaborate on it, the last part? I didn't quite understand it. Thank you!

This site has nothing to do with PowerShell.

It would be very inefficient to try to use PowerShell to automate Firefox, since PowerShell cannot read the web pages loaded in Firefox. Firefox does not provide that kind of interface to external scripts.

Therefore, you would use standard Windows components to retrieve the page, parse it, and then if desired, retrieve the download.

Therefore, this is not the right site for further discussion.

''sayyam197 [[#answer-772467|said]]'' <blockquote> Could you please elaborate on it, the last part? I didn't quite understand it. Thank you! </blockquote> This site has nothing to do with PowerShell. It would be very inefficient to try to use PowerShell to automate Firefox, since PowerShell cannot read the web pages loaded in Firefox. Firefox does not provide that kind of interface to external scripts. Therefore, you would use standard Windows components to retrieve the page, parse it, and then if desired, retrieve the download. Therefore, this is not the right site for further discussion.