Skip to content
⌘ NSIS Forum Archive

CopyFiles and SetOverwrite "IfNewer" question

3 posts

cchian#

CopyFiles and SetOverwrite "IfNewer" question

Does the SetOverwrite "IfNewer" flag works when using CopyFiles?
I already have an installer set to overwrite files if newer. I also would like it to check if there are certain files in the directory where the installer is running from and if this is the case I want the installer to use those files only if they are newer than the ones included in the installer or in the installed directory.
Is there a better way of implementing this?

Thanks,

Carlos
kichik#
SetOverwrite doesn't work with CopyFiles. To do as you request you'd have to compare the dates by hand. You can write a little macro for it, or a function.