Solved

How can i automaticaly update Application? Can I get the file date last modified or file size directly from ftp?

Posted on 2006-06-16
3
130 Views
Last Modified: 2010-04-05
I want to update Application IF ftp server has a new version of App
How can i do it?
0
Comment
Question by:selas
3 Comments
 
LVL 9

Expert Comment

by:sun4sunday
Comment Utility
There are lot of components to do this
One is
http://www.tmssoftware.com/wupdate.htm
Allows updates based on dates, on file version info, on filesize or file checksum or on custom version checks
Can check for updated files over http and ftp protocols or simply file based for Intranet applications

sun4sunday
0
 
LVL 10

Expert Comment

by:atul_parmar
Comment Utility
Use WinInet API
see http://www.cryer.co.uk/brian/delphi/wininet.htm#FtpFindFirstFile
There is also example code.
0
 
LVL 11

Accepted Solution

by:
calinutz earned 500 total points
Comment Utility
The whole ideea is to connect to that FTP (using Indy or other internect component suite packs) download a text file from that ftp location... Text file that holds the version info inside. Check the version info with a version info that resides on your harddrive and if the version from FTP is newer (bigger number) then proceed with the download of the real update package.
This can be done easily using a TTimer to connect automaticaly every 15 minutes or more and download the respective file that contains the version info. Also do not forget to place the file (for example called 'version.txt') together with the real update in the FTP location.
After that your code (that also comes installed with a version number in a version.txt file on the local drive), so your code must check the contents of the 2 files the remote ftp version.txt file and the local one. When there is a differnce start downloading the update and install it.
I do not use third party components to do stuf that I want to control every step. This does not mean that you should not use them... They are good if you are a in hurry and if you find them usefull for your purpose.

Regards
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now