greenfant
1st September 2006 01:05 UTC
File instruction fails with "-> no files found"
There is probably an easy solution for this:
In my nsi file, I have:
!define SOURCEPATH "c:\bla\blabla\"
...
File "{$SOURCEPATH}target3.xml"
When I compile this, I get:
"File: "$SOURCEPATH" -> no files found."
yet the absolute path for the source file is valid.
What I really want to do is use Var and StrCpy, but I get the same result. So, how can I use a user-defined "variable" correctly in the File instruction?
Thanks,
greenfant
Joel
1st September 2006 02:11 UTC
In my small experience:
!define SOURCEPATH "c:\\bla\\blabla"
>...
>File "${SOURCEPATH}\\target3.xml"
vitoco
1st September 2006 15:59 UTC
Re: File instruction fails with "-> no files found"
Change:
Originally posted by greenfant
File "{$SOURCEPATH}target3.xml"
to:
File "${SOURCEPATH}target3.xml"
But as Joel said, is better to exclude the trailing backslash from the path, and include it where it will be used ;)
++V
greenfant
1st September 2006 17:47 UTC
That did it. Thanks for your help!!!