Followers 0

# how to get the latest software version number

## 7 posts in this topic

how to get the latest software version number?

for example, I want to get the latest chrome version number.

##### Share on other sites

if you are asking for what is installed on the pc, then either a registry read or a FileGetVersion() will do it. if you want to know what is the latest available version from the vendor, that is very much software-specific. can you explain your intention?

##### Share on other sites

if you are asking for what is installed on the pc, then either a registry read or a FileGetVersion() will do it. if you want to know what is the latest available version from the vendor, that is very much software-specific. can you explain your intention?

I want to know what is the latest available version from the vendor.

##### Share on other sites

Very easy for AutoIt software.

; AutoitVersion.au3
#include <Inet.au3>
#include <string.au3>
$pfile = StringTrimLeft(StringTrimRight(RegRead("HKEY_CLASSES_ROOT\AutoIt3Script\Shell\Run\Command", ""), 9), 1)$bfile = _StringInsert($pfile, "\\beta", -12)$pver = FileGetVersion($pfile)$bver = FileGetVersion($bfile) If @error Then$bver = "none"
$a = _StringBetween(_INetGetSource("http://www.autoitscript.com/site/autoit/downloads/"), "Latest version:</strong> v", "<")$lpver = $a[0]$a = _StringBetween(_INetGetSource("http://www.autoitscript.com/autoit3/files/beta/autoit"), "autoit-v", "-beta-setup.exe")
$lbver =$a[UBound($a) - 1]$text = "AutoIt Versions" & @LF & @LF & "Installed" & @LF & "Prod: " & $pver & @LF & "Beta: " &$bver & @LF & @LF
$MsgMod = 0 If ($pver = $lpver) And ($bver = $lbver) Then$text &= "No newer versions available."
Else
$MsgMod = 48$text &= "Newer version to download" & @LF & "Prod: " & $lpver & @LF & "Beta: " &$lbver
EndIf

MsgBox($MsgMod + 4096, @ScriptName,$text)

My UDFs, Abbrevs and Snippets
If you like my post, just click the like button

##### Share on other sites

you'll have to google the specific software you are interested, and work with it. for example, for Google Chrome you can use the IE UDF to read the body of this blog: http://googlechromereleases.blogspot.co.il/

the body contains the latest Chrome version. note that the format may change from time to time.

this is very software-specific.

##### Share on other sites

yeah, what Exit said, and you'll have to adjust to whatever software you are interested in.