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
131 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
ID: 16919256
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
ID: 16919983
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
ID: 16926338
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
This is a video describing the growing solar energy use in Utah. This is a topic that greatly interests me and so I decided to produce a video about it.
This is a video that shows how the OnPage alerts system integrates into ConnectWise, how a trigger is set, how a page is sent via the trigger, and how the SENT, DELIVERED, READ & REPLIED receipts get entered into the internal tab of the ConnectWise …

932 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

13 Experts available now in Live!

Get 1:1 Help Now