Hybrid Posted February 24, 2012 Share Posted February 24, 2012 Hello. Im back with a newbie question...:... HowTo make an AutoUpdater? Which download the latest version of software?. I want a gui with a progress bar and a Download button.... Some Help would be Helpful Regards Hybrid~ Link to comment Share on other sites More sharing options...
rcmaehl Posted February 24, 2012 Share Posted February 24, 2012 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 WhyNotWin11Cisco Finesse, Github, IRC UDF, WindowEx UDF Link to comment Share on other sites More sharing options...
Hybrid Posted February 24, 2012 Author Share Posted February 24, 2012 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 comment Share on other sites More sharing options...
rcmaehl Posted February 24, 2012 Share Posted February 24, 2012 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 WhyNotWin11Cisco Finesse, Github, IRC UDF, WindowEx UDF Link to comment Share on other sites More sharing options...
Hybrid Posted February 24, 2012 Author Share Posted February 24, 2012 Tyvm i will try it soon 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