Old 24th March 2011, 13:22   #1
zizou0105
Junior Member
 
Join Date: Mar 2011
Posts: 1
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 :

code:
# 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

zizou0105 is offline   Reply With Quote
Old 25th March 2011, 04:57   #2
MSG
Major Dude
 
Join Date: Oct 2006
Posts: 1,892
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 .
MSG is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump