Archive: How to copy a file to two dirs on the destination


How to copy a file to two dirs on the destination
Hello

I have some files that I need to install to more than one subdirectory in the installation target directory. How can I do this with out including the files more than once in the installation package?

Thanks

rrl


See 4.9.3.2 CopyFiles in NSIS documentation.
e.g.
Section
.....
SetOutPath '$INSTDIR\some_folder'
File 'myfile.ext'
CopyFiles '$INSTDIR\some_folder\myfile.ext' '$INSTDIR\some_other_folder\myfile.ext'


But even if you add the same file more than once, it'd not increase the installer size, if this is the matter.
e.g.

Section 
SetOutPath '$INSTDIR'
file 'my_file.ext'

SetOutPath '$INSTDIR\other_dir'
file 'my_file.ext'
SectionEnd

Installer would be the same size like when file added only once.

Thanks for your help