Jump to content
Sign in to follow this  
FuryCell

_UpdateCheck UDF

Recommended Posts

FuryCell

_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.7

The 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 by FuryCell

HKTunes:Softpedia | GoogleCodeLyricToy:Softpedia | GoogleCodeRCTunes:Softpedia | GoogleCodeMichtaToolsProgrammer n. - An ingenious device that turns caffeine into code.

Share this post


Link to post
Share on other sites
stinson6016

that's really cool, side note how do you get the update.txt do not show on code.google?


Gnatwork Networks

Share this post


Link to post
Share on other sites
gseller

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..

Share this post


Link to post
Share on other sites
MartiniThePilot

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

Share this post


Link to post
Share on other sites
FuryCell

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,

Martini

Sounds like it could be added at some point.

Edited by P5ych0Gigabyte

HKTunes:Softpedia | GoogleCodeLyricToy:Softpedia | GoogleCodeRCTunes:Softpedia | GoogleCodeMichtaToolsProgrammer n. - An ingenious device that turns caffeine into code.

Share this post


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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.