Skip to content
⌘ NSIS Forum Archive

Copyfiles but include all Subfolders/Files

2 posts

Hul#

Copyfiles but include all Subfolders/Files

Hi @ll,

First of all, sorry for my bad english! I hope you will help me anyway. 🙂
i'm working the first time with NSIS and this forum helps a lot. But i've got one Problem which i can't find here:

I don't want to include all Files into the Setup.exe, i want them to be in an subfolder on my cd. So the Setup.exe would be in the root directory and all the program files are in "InstallationFiles\". <-- Including many sub folders.

My installer works fine if i use "File /r...." but that way all the files are included in the setup.exe and the file is getting really large.

The Problem:
CopyFiles "$OUTDIR\Program\*.*" "$INSTDIR"
doesn't work, and i can't find a solution how to copy all the files to my installation directory, including all files and sub folders.
mauvecloud#
CopyFiles is recursive, but won't work if the source directory is wrong - you might need to use $EXEDIR instead of $OUTDIR.