Skip to content
⌘ NSIS Forum Archive

Insert into setup

6 posts

AstraS#

Insert into setup

Hi
How can I insert into my setup.exe files?
For example MyProgram.exe + Firebird.exe + MyDB.dbf
Thanks in advance!
alx5962#
simple answer:
File "Firebird.exe"
File /r "My folder" ; to include folder

"File" command includes the files into the NSIS executable
AstraS#edited
Ok, but I want to use only one file, for examle setup.exe
and then run installation of my program + firebird.exe + mydb.dbf
or it is wrong way?
and which way is right?
Thanks in advance!
alx5962#
"File" only includes your file into the .exe
Put "Exec" or "ExecWait" in your nsis script pointing your included file.

* In your NSIS script :
Section -Main
SetOutPath $INSTDIR
File "thunderbird.exe" ; include the file
...
SectionEnd

Section -post
Exec "$INSTDIR\thunderbird.exe" ; execute the file
...
SectionEnd
ignavia#
I have to say, while this is a very newbie question, finding the answer is completely not obvious, especially since copying files is the core functionality of an installer. NSIS documentation should make file operations easier to find.