rrl
31st December 2006 15:49 UTC
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
Red Wine
31st December 2006 17:28 UTC
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'
Red Wine
1st January 2007 09:05 UTC
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.
rrl
1st January 2007 09:10 UTC
Thanks for your help