Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   file instruction w/relative paths...? (http://forums.winamp.com/showthread.php?t=281124)

tcaton 9th November 2007 21:11

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

code:

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



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

code:

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

Afrow UK 9th November 2007 22:08

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

Stu


All times are GMT. The time now is 04:37.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.