Archive: get Creation Date from a remote file


get Creation Date from a remote file
Is it possible to get the Creation Date from a file on a remote server?
Basically, I want to dl a new file if the there is a newer file on the server
is this possible...or is there a better way ?
many thanks


only thing I could find was creating an ini file on the server and comparing that to the app's registry. Is there a way to get the Date Created of the file on the server instead ?


You shouldn't compare file creation dates for updates. The reason for this is that the file creation date will be completely different after it is decompressed (its file creation date would be the time and date that it was decompressed!)

Therefore you should check for updates using MD5 values. Check out this plugin that creates file MD5's.

To do updates you will have to store the MD5 of your file in a file on the internet, and user's installers will download it and compare the MD5 in the downloaded file to their local file.

To make an MD5 for your update files, you should write a small NSIS installer to do it (using the plugin).

-Stu


thanks :)

sounds like a good plan
because the file is a bit large to download and compare every time [for modem users], would I make an MD5 file out of an .ini or preference file
containing file versions and such...This is how most people do this yes ?