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
135 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses
Course of the Month3 days, 15 hours left to enroll

630 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