Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to make our program update automatically thru the internet ?

Status
Not open for further replies.

binhpham

Programmer
Oct 12, 1999
33
US
Hi all,
Would some guru show me how to make my program update automatically thru the internet.
Are there any way the program will read the version of EXE on the net server , if the newer version found then download to the desk top of users and install ?
Thanks
 
First you have to create your exe in two parts.

Part one is a loader program that checks to see if there is a newer version of the exe on your FTP site or Web site.

It then copies the new exe if needed and then runs it.

You have to have two aprts because an exe cannot copy over itself.

Second if you are using FTP to transfer the exe, then you cannot read the version directly. What I do is create a small text file with the version # in it, my loader reads that and compares it with the existing exe if the text file has a higher number then it transfers the exe.

Most of the rest is pretty easy coding, there are a number of examples of how to ftp a file both in the VFP sample files and in other posts on this forum.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top