Archive: Install an external File into my installation directory


Install an external File into my installation directory
Hi Guys

Here is my problem.

With NSIS, I create my exe. With this exe, I want to put a License.txt file and when I will install my program, the license file will be placed into the installation directory.

Does anyone know how to do that ??

Thx a lot

PS : I found this code but it's not exactly what I want :

# define the name of the installer
outfile "simple installer.exe"

# define the directory to install to, the desktop in this case as specified
# by the predefined $DESKTOP variable
installDir $DESKTOP

# default section
section

# define the output path for this file
setOutPath $INSTDIR

# define what to install and place it in the output path
file test.txt

sectionEnd

The File command compiles a file into the installer. Since this is not what you want, you have to use the CopyFiles command. Use the $EXEDIR variable as described in http://nsis.sourceforge.net/Docs/Chapter4.html#4.2.3 .