My software has some user modifiable files which I don't want to overwrite during re-installation if modified.
I decided to use archive bit to signal that the destination file is modified or not by the user. During fresh install all archive bit of all related files will be set to OFF.
archive OFF: means that this file is unmodified therefore can be replaced with a recent version archive ON: means that this file is modified by the user and should not be overwritten by the installer even if there is a newer version.
Note: as you know, by design, editing and saving a file sets the archive bit ON.
I even thought to use robocopy within NSIS script, however exclusion parameters of robocopy is related to source files not to destination files as far as I can see. I used the code below:
robocopy c:\source c:\target /XA:A
Can you kindly give clues to implement such a feature.