Skip to content
⌘ NSIS Forum Archive

NSIS file modify time

3 posts

sfx09#

NSIS file modify time

Hello!

I use nsis-3.01-log, compile script from Windows 7 64-bit with bzip2 compressor.

Short question. I add many files in installer (for example):

;...
File "/oname=my.exe" "D:\!INSTALLER\!cache\my.exe"
File "/oname=my2.exe" "D:\!INSTALLER\!cache\my2.exe"
;... 
But sometimes, rarely, my.exe loses one second from modify filetime after installing!
For example, in "D:\!INSTALLER\!cache\my.exe" - modify time attribute is ‏‎12:37:09, but after unpacking in $INSTDIR (after installing) this file modify time attribute is ‏‎12:37:08 (windows 7 information in "properties").

Theoretically, can NSIS algorithms edit the date or time of files, which packed into the installer?

Thank you for answer. I already broke my head, where do I lose this second. In this case, if I recompile my.exe (just for example, it's can be any other file) - everything is fine before the next similar situation.
Anders#
Yes, NSIS might modify the time a little bit. The changed time will be <= 4 seconds off the original. This is because FAT32 has a resolution of 2 seconds (DOS time) and we want the "ifnewer" mode to work correctly on these partitions.