Archive: Include a whole folder ?


Include a whole folder ?
I am, for example, using the collowing code to include a file into an installer:

Section "Example2 (required)"
File "C:\FRUNLOG.TXT"
SectionEnd

But how can I include an entire folder instead of just a single file ?

Quote from documentation - File Command

If the /r switch is used, files and directories are added recursively. If is no trailing wildcard (e.g. File /r C:\whatever\mydir), then the whole tree of mydir will go in $OUTDIR\mydir. To put it in $OUTDIR, use File /r C:\whatever\mydir\*.*

Section "Example2 (required)"
SetOutPath $INSTDIR
File "*.*"
SectionEnd

I'll go like deguix wrote:


Section "Section Dude(required)"
SetOutPath $INSTDIR
File /r C:\dir ;could be File /r "C:\dir\*.*"
SectionEnd