Archive: exclude directory from File /r


exclude directory from File /r
I use the File /r command in a section and exclude several filenames. Some are exact, some are with wildcards. Finally I ask for a generic wildcard to get all files but some at the end. This works nicely.

I also want to exclude directories. This worked nicely also for Eclipse- and SVN-directories like .svn .

But now I need to exclude another directory including everything 'below'. And this does not work. The directory and it's contents are in the resulting installer.

This is the command I use, HTDOCSclean and HTDOCSobf are the directories I want to exclude:

File /r \
/x *.jpg /x *.gif /x *.png \
/x .svn \
/x HTDOCSclean /x HTDOCSobf /x Thumbs.db \
/x .project /x .settings \
"*.*"

NSIS version is 2.45
OS is XP

What I am doing wrong? Can you help me please?

ok, stupid me...

I should have noticed it is only the images that are in the unwanted directories. Those are packed in another 'File /r' that was missing the /x .

sorry