Archive: Omitting certain files when specifying files to install recursively


Omitting certain files when specifying files to install recursively
I have been searching for an elegant solution to a simple problem I'm having. I have the following in my installer script:

SetOutPath "$INSTDIR"
File /r ".\files\*.*"

This 'files' folder is part of my subversion working directory, and thus contains '.svn' folders at every level - which I obviously do not want to include in my actual installer. I cannot delete them do to repository structure, so I am wondering if I can specify 'files to be ignored' if you will. I know I could explicitly specify every file that I want to include, but there are far too many.

Does anyone know of a way to do this? It would be great if there was a flag that could be used such as:
File /r ".\files\*.*" /x ".svn"


Hmm, I suppose looking in the manual might be called cheating?
http://nsis.sourceforge.net/Docs/Chapter4.html#4.9.1.5

Here's a suggestion: File /r /x *.svn .\files\*.*

Don


errr....
wow.... not sure how I could have missed that one. I usually find everything I need in the manual, but I must have skimmed over it late at night or something.

Thanks