Downloading Missing-Updated Files

Got a problem you cannot solve? Try here.
AdrianGray
Posts: 32
Joined: Fri Jul 25, 2014 5:21 am

Downloading Missing-Updated Files

Postby AdrianGray » Tue Jan 05, 2021 9:05 pm

I am looking for some guidance as to the best approach to add/update files from an FTP site to a local folder. We have a bank of over 1500 standard reports that get updated from time to time. They on an FTP site so I need to compare the local folder to the ones on the FTP site. If the FTP site has a report the local computer does not, it needs downloading.

The other part is to see if the file on the FTP site is newer. If so, rename local file then download updated report. I am trying to avoid having to imbed the files into the installer. Thanks in advance, Adrian.

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Downloading Missing-Updated Files

Postby FrancescoT » Thu Jan 07, 2021 3:03 pm

Unfortunately, IA doesn't have a built-in method capable to enumerate the files that may be available from a FTP folder.
For this you should develop your own custom method. This may be a custom plugin, a DLL or an EXE.

Alternatively you may simplify your approach, with storing on your FTP server a file where is stored the list of the updated files. This may be a simple TXT file.

Then such file may be downloaded by your installer, and once you read its content ...the rest is just a matter of downloading those files from your FTP.

Of course, this is just a possible suggestion.
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 45 guests