Jump to content

how to get the latest software version number


Go to solution Solved by Exit,

Recommended Posts

Posted

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?

Signature - my forum contributions:

Spoiler

UDF:

LFN - support for long file names (over 260 characters)

InputImpose - impose valid characters in an input control

TimeConvert - convert UTC to/from local time and/or reformat the string representation

AMF - accept multiple files from Windows Explorer context menu

DateDuration -  literal description of the difference between given dates

Apps:

Touch - set the "modified" timestamp of a file to current time

Show For Files - tray menu to show/hide files extensions, hidden & system files, and selection checkboxes

SPDiff - Single-Pane Text Diff

 

Posted

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.

  • Solution
Posted

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)

App: Au3toCmd              UDF: _SingleScript()                             

Posted

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.

Signature - my forum contributions:

Spoiler

UDF:

LFN - support for long file names (over 260 characters)

InputImpose - impose valid characters in an input control

TimeConvert - convert UTC to/from local time and/or reformat the string representation

AMF - accept multiple files from Windows Explorer context menu

DateDuration -  literal description of the difference between given dates

Apps:

Touch - set the "modified" timestamp of a file to current time

Show For Files - tray menu to show/hide files extensions, hidden & system files, and selection checkboxes

SPDiff - Single-Pane Text Diff

 

Posted

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

Signature - my forum contributions:

Spoiler

UDF:

LFN - support for long file names (over 260 characters)

InputImpose - impose valid characters in an input control

TimeConvert - convert UTC to/from local time and/or reformat the string representation

AMF - accept multiple files from Windows Explorer context menu

DateDuration -  literal description of the difference between given dates

Apps:

Touch - set the "modified" timestamp of a file to current time

Show For Files - tray menu to show/hide files extensions, hidden & system files, and selection checkboxes

SPDiff - Single-Pane Text Diff

 

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...