Jump to content

Recommended Posts

You would probably need to host your own file containing the versions of all the programs, and then compare to those versions using Inetread, StringReplace, and a simple greater than comparision.

My UDFs are generally for me. If they aren't updated for a while, it means I'm not using them myself. As soon as I start using them again, they'll get updated.

My Projects

WhyNotWin11
Cisco FinesseGithubIRC UDFWindowEx UDF

 

Link to post
Share on other sites

You would probably need to host your own file containing the versions of all the programs, and then compare to those versions using Inetread, StringReplace, and a simple greater than comparision.

i forget to mention that im nub learner?
Link to post
Share on other sites

Here's an example from my own program URSafe:

Const $Version[3] = ["1.3.0.0", "1.3.0.0.4", True]
Func Update()
ProgressOn("URSafe Updater", "Please Wait", "Getting Latest Version Number.")
$Version_File = StringTrimRight(BinaryToString(InetRead("http://www.fcofix.org/mirror/ursupdate.txt")), 1)
ProgressSet(33, "Comparing Latest Version to Local Version", "Checking")
If $Version[2] Then
  If StringTrimLeft($Version_File, 5) > StringReplace($Version[1], ".", "") Then
   ProgressSet(66, "Opening Source to Version " & StringTrimLeft($Version_File, 5), "Opening")
   ShellExecute("http://code.google.com/p/kidsafe/source/browse/")
  Else
   ProgressSet(66, "No Developer Build Available.", "Up to date")
   Sleep(500)
  EndIf
Else
  If StringTrimRight($Version_File, 6) > StringReplace($Version[0], ".", "") Then
   ProgressSet(66, "Downloading Update to Version " & StringTrimRight($Version_File, 6), "Downloading")
   $Update_File = InetGet("http://www.fcofix.org/mirror/ursafe.exe", @ScriptDir & "URSafe_Setup.exe", 1, 0)
   InetClose($Update_File)
  Else
   ProgressSet(66, "No Update Needed.", "Up to date")
   Sleep(500)
  EndIf
EndIf
ProgressSet(100, "Done", "Closing")
Sleep(1000)
ProgressOff()
EndFunc

This should be what you're generally looking for. The documentation files with AutoIt can help if you have an questions, and I'll be watching this topic.

My UDFs are generally for me. If they aren't updated for a while, it means I'm not using them myself. As soon as I start using them again, they'll get updated.

My Projects

WhyNotWin11
Cisco FinesseGithubIRC UDFWindowEx UDF

 

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

    No registered users viewing this page.

×
×
  • Create New...