Archive: file instruction w/relative paths...?


file instruction w/relative paths...?
So, I've got a directory structure like this (not really code, but preserves my spaces)...


bin\
myapp.exe
lib\
src\
include\
tools\
installer.nsi
NSIS\
bin\


Then, I have the following in my script (edited for brevity):


Section "Applications" SEC01
File /r "..\bin"
SectionEnd


Given the location of the script ("tools\"), I would expect it to find and include only the "bin" directory at the root. However, it is also descending into the "bin" directory of the NSIS folder and collecting those files. As a quick test, I created another "bin" directory under "include", which was also picked up. It appears that, even though I'm specifying what I think is a relative path to the top level "bin" directory only, the compiler is picking up any directory called "bin" that it encounters (odd, since no where am I telling it about the "include" directory -- not sure why it's even looking here).

Am I not understanding how the compiler treats relative paths? Or is this a bug? Cheers,

Terry

That is asking it to recursively add all bin folders. You probably want:
File /r "..\bin\*.*"

Stu