Funkcionalnosć toś togo sedła se pśez wótwardowańske źěła wobgranicujo, kótarež maju wašo dožywjenje pólěpšyś. Jolic nastawk waš problem njerozwězujo a cośo pšašanje stajiś, wobrośćo se na našo zgromoźeństwo pomocy, kótarež na to caka, wam na @FirefoxSupport na Twitter a /r/firefox na Reddit pomagaś.

Pomoc pśepytaś

Glědajśo se wobšudy pomocy. Njenapominajomy was nigda, telefonowy numer zawołaś, SMS pósłaś abo wósobinske informacije pśeraźiś. Pšosym dajśo suspektnu aktiwitu z pomocu nastajenja „Znjewužywanje k wěsći daś“ k wěsći.

Dalšne informacije

Where can I find the latest version number in a document in the web? so I can download it with wget to check if the current installed firefox version is up to date and update ir if necessary?

  • 5 wótegrona
  • 1 ma toś ten problem
  • 2 naglěda
  • Slědne wótegrono wót Jaheaga

more options

My problem is that I can't find the latest version number in here http://releases.mozilla.org/pub/mozilla.org/firefox/releases/latest/win32 as a document, so I can check against "HKLM\SOFTWARE\Mozilla\Mozilla Firefox\CurrentVersion" and update or not, all this is done by a script. It will be great not have to change the versión number in the script every time there is a new release.

Thanks

My problem is that I can't find the latest version number in here http://releases.mozilla.org/pub/mozilla.org/firefox/releases/latest/win32 as a document, so I can check against "HKLM\SOFTWARE\Mozilla\Mozilla Firefox\CurrentVersion" and update or not, all this is done by a script. It will be great not have to change the versión number in the script every time there is a new release. Thanks

Wót Jaheaga změnjony

Wubrane rozwězanje

I think I solved, all I have to do is this:

//here I download the entire page

wget.exe http://www.mozilla.org/en-US/firefox/all.html -O index


//here I search for the word curVersion and set a variable with the result, which is "10.0.2"


for /f "tokens=3 delims= " %%A IN ('type index ^| FIND /I "curVersion" ' ) do set latestversion=%%A

//here I just make sure I get a number

echo "%latestversion%" pause

Later I check it against the registry and voila! I hope this can help other admins who have the same problem.

Regards.

Toś to wótegrono w konteksće cytaś 👍 0

Wšykne wótegrona (5)

more options

Why don't you just use Firefox's internal updater, and it will automatically update your Firefox to the latest version when it becomes available? (I'm assuming this is for windows, not your Linux system, as you posted about the windows registry).

Updating Firefox has more information about how to update Firefox.

Unless I'm terribly misunderstanding your question ;)

more options

The problem is when the user has a versión lower than 3.6 and trust me, I have a lot of those, but in the version 4.0 + there is a way I can update from the command line?

Pd yes, is windows

Wót Jaheaga změnjony

more options

You can use Firefox 3.6's and belows auto update to update to Firefox 10 as well. you just have to either run updates several times until it gets to 10, or, just download and install the exe for 10. even installing Firefox 10 or Firefox 10 won't hurt anything so long as it is the same or later version.

I Am not aware of a way to update using CLI, but https://wiki.mozilla.org/Deployment:Deploying_Firefox might help you.

more options

well, I can't update manually, thats why I have a script, but I want to save the bandwith if the user already has version 10.0.2. thks anyway

Wót Jaheaga změnjony

more options

Wubrane rozwězanje

I think I solved, all I have to do is this:

//here I download the entire page

wget.exe http://www.mozilla.org/en-US/firefox/all.html -O index


//here I search for the word curVersion and set a variable with the result, which is "10.0.2"


for /f "tokens=3 delims= " %%A IN ('type index ^| FIND /I "curVersion" ' ) do set latestversion=%%A

//here I just make sure I get a number

echo "%latestversion%" pause

Later I check it against the registry and voila! I hope this can help other admins who have the same problem.

Regards.

Wót Jaheaga změnjony