Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 3 of 3 total
Thread Downloading an update
Tue, Jan 8 2008 12:13 PMPermanent Link

Declan O'Kane
I use dbisam for my software www.medexam.net which is an encrypted database of medical questions

From time to time I update this - I alter old questions and add new ones

I want a feature that allows the program to at times simply check the website and if there is a new update to automatically download and install and update the database of questions

Advice would be very welcome how to do it

Many thanks

Declan
Tue, Jan 8 2008 12:57 PMPermanent Link

"Chris Thornton"
Typically, you have a file on your site with the update info. It can be as
simple as:
ver.txt
1.2.3.4

Or, at the other end of the spectrum, you can have a full-blown RSS feed
with versions and file locations of the latest program release, latest full
database, latest datbase update, newsletter, etc..

Either way, you grab the file using http, examine it, and take appropriate
action such as notifying the user, downloading the update file mentioned in
the first file, etc..
I use this approach:

http://www.scalabium.com/faq/dct0080.htm

It shows how to download a file using WinInet, in about 25 lines of Delphi
code. Replace 'Delphi 5.x' with your application name.
It works with all recent IE, but you do not have to use IE. i.e. (ha ha) you
can be a FireFox user, and it'll still work as long as IE is installed
(probably version 5 or later).



Tue, Jan 8 2008 1:18 PMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Declan


Or rather than use IE you can use one of the internet suites such as Synapse (or Indy but I prefer Synapse).

The other approach is to use either a commercial or freeware component. TMS have a decent one or you can search Torry.

Roy Lambert
Image