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
How to copy a file to two dirs on the destination
4 posts
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'
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.
e.g.
Installer would be the same size like when file added only once.Section
SetOutPath '$INSTDIR'
file 'my_file.ext'
SetOutPath '$INSTDIR\other_dir'
file 'my_file.ext'
SectionEnd
Thanks for your help