Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   How to copy a file to two dirs on the destination (http://forums.winamp.com/showthread.php?t=262777)

rrl 31st December 2006 14:49

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 16:28

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 08:05

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.
code:
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 08:10

Thanks for your help


All times are GMT. The time now is 04:35.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.