Search code examples
datedllinstallationnsis

avoid updating date modified field of installed files


I am trying to figure out how to avoid updating the 'date modified' field of files when using nullsofts scriptable install system. In particular a .dll file's date modified field is used to determine whether or not the dll needs to be updated.

However once the installer is run the dll's date modified field is updated to the current time, preventing me from using this field to determine whether or not the dll needs to be updated.

Any ideas?? This does not seem to be an issue with msi.


Solution

  • The SetDateSave instruction controls this:

    SetOutPath $temp
    SetDateSave on ; This is the default
    File "Foo.dll"
    SetDateSave off
    File "Bar.dll"