Sign in to follow this  
Followers 0
xweng

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 this post


Link to post
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 this post


Link to post
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 this post


Link to post
Share on other sites

Very easy for AutoIt software. :thumbsup:

; 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 this post


Link to post
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 this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0