FuryCell Posted November 24, 2009 Posted November 24, 2009 (edited) _UpdateCheck is a small udf for checking for updates for your app. It uses a file hosted on a remote server in the format of the following.Version=1.7The following example code would do the following:1.Check version stored in "http://lyrictoy.googlecode.com/files/update.txt"2.If the current version is not the one stored in the file then it would pop up a messagebox allowing you to go to the site and download it.#Include<_updatecheck.au3> _UpdateCheck("http://lyrictoy.googlecode.com/files/update.txt", "1.0", "LyricToy", "http://lyrictoy.googlecode.com")Get It here. Edited May 24, 2010 by FuryCell HKTunes:Softpedia | GoogleCodeLyricToy:Softpedia | GoogleCodeRCTunes:Softpedia | GoogleCodeMichtaToolsProgrammer n. - An ingenious device that turns caffeine into code.
stinson6016 Posted November 25, 2009 Posted November 25, 2009 that's really cool, side note how do you get the update.txt do not show on code.google? Gnatwork Networks
gseller Posted November 25, 2009 Posted November 25, 2009 You can make your own, create a new txt file named Update.txt and put Version=1.7 or whatever version you are changing to..
MartiniThePilot Posted November 25, 2009 Posted November 25, 2009 Nice idea! Thanks! Any plans to be able to do an "in-place" update of the running script? (If the user answeres YES, do the download from within the script, evtl. with progress bar, and than run the new script). For this, probably an update script must be used to exit the current one, replace the old with the new and call (execute) the new one. Just an idea - will be more complex for zipped downloads or installer packages. Thanks again, Martini
FuryCell Posted November 25, 2009 Author Posted November 25, 2009 (edited) Works Great!! Thank You for sharing!!Glad you like it.that's really cool, side note how do you get the update.txt do not show on code.google?Add the deprecated tag to update.txt when you upload it to google. Nice idea! Thanks! Any plans to be able to do an "in-place" update of the running script?(If the user answeres YES, do the download from within the script, evtl. with progress bar, and than run the new script).For this, probably an update script must be used to exit the current one, replace the old with the new and call (execute) the new one.Just an idea - will be more complex for zipped downloads or installer packages.Thanks again, MartiniSounds like it could be added at some point. Edited November 25, 2009 by P5ych0Gigabyte HKTunes:Softpedia | GoogleCodeLyricToy:Softpedia | GoogleCodeRCTunes:Softpedia | GoogleCodeMichtaToolsProgrammer n. - An ingenious device that turns caffeine into code.
FuryCell Posted May 24, 2010 Author Posted May 24, 2010 Updated to V1.1 Now uses an algorithm to make sure the version is newer as opposed to just different. Get it above =) HKTunes:Softpedia | GoogleCodeLyricToy:Softpedia | GoogleCodeRCTunes:Softpedia | GoogleCodeMichtaToolsProgrammer n. - An ingenious device that turns caffeine into code.
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