Archive: File modified date/time


File modified date/time
Hi,

I have been trying to get the last modified date/time of a file so that when I reinstall the new version, the installer can check if the file is locally modified, if yes, then it can back it up before replacing it with the new copy.

I could get the file date using the following APIs:
1. GetFileTime
2. FileTimeToSystemTime
3. GetDateFormatA

If I use GetTimeFormatA() with the input returned by FileTimeToSystemTime(), I always get the file time as "08:51:06 AM"

Not sure whats wrong with it.

Thanks,


http://nsis.sourceforge.net/wiki/GetTime