Re: Check internet for update?
- Posted by Greg Haberek <ghaberek at gmail.com> Jul 31, 2005
- 482 views
> Is it possible (of course it is, I mean is it practical in EU) to write > a routine for my program to test for an internet connecton and then test > to see if the current program is up to date. I have a site with both > http and ftp if that helps, and I would like to do it witout user > prompts. > > This is a win32lib based program. I've been thinking about the same issue. Here's my proposed solution: 1) Setup a directory on your server for each app you've made. myw2ebsite.com/app01/ mywebsite.com/app02/ 2) Add a file called "version.txt" into each directory that specifies the current version of each app. mywebsite.com/app01/version.txt mywebsite.com/app02/version.txt 3) App01 will download app01/version.txt periodically via URLDownloadToFile (see Archive), either on its own or via user request. 4) If App01 determines its curernt version is older than what version.txt says, it asks the user if he/she would like to download the update. 5) App01 will download app01/app01_install.exe and execute it. I'll assume for now that app01_install.exe is an install file made with Euman's installer. The entire process seems pretty easy. Once I start knocking out real programs on a regular basis, maybe I'll write a library standardize this update process. ~Greg