xweng Posted December 18, 2013 Share Posted December 18, 2013 how to get the latest software version number? for example, I want to get the latest chrome version number. Link to comment Share on other sites More sharing options...
orbs Posted December 18, 2013 Share Posted December 18, 2013 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 Link to comment Share on other sites More sharing options...
xweng Posted December 18, 2013 Author Share Posted December 18, 2013 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. Link to comment Share on other sites More sharing options...
Solution Exit Posted December 18, 2013 Solution Share Posted December 18, 2013 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) App: Au3toCmd UDF: _SingleScript() Link to comment Share on other sites More sharing options...
orbs Posted December 18, 2013 Share Posted December 18, 2013 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 Link to comment Share on other sites More sharing options...
orbs Posted December 18, 2013 Share Posted December 18, 2013 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 Link to comment Share on other sites More sharing options...
Exit Posted December 18, 2013 Share Posted December 18, 2013 (edited) To find the current installed software levels you can use the freeware tool "Belarc Advisor" http://www.belarc.com/free_download.html Edited December 18, 2013 by Exit App: Au3toCmd UDF: _SingleScript() Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now