SadE54
16th January 2009 13:59 UTC
Canno't get RECfind working
Hi,
I'm trying to use Recfind.nsh without success.
here's the provided examplein recfind.nsh :
${RecFindOpen} `E:\NSIS` $R0 $R1
DetailPrint `E:\NSIS$R0`
${RecFindFirst}
DetailPrint `File: C:\Dir$R0\$R1`
StrCmp $R1 `NSIS.chm` Found
${RecFindNext}
Found:
${RecFindClose}
Here's what I get after compiling :
3 warnings:
unknown variable/constant "{DirVar}" detected, ignoring (macro:_RecFindFirst:9)
unknown variable/constant "{DirVar}" detected, ignoring (macro:_RecFindFirst:16)
unknown variable/constant "{_CurrentDir}" detected, ignoring (macro:_RecFindFirst:17)
When I try the installer it does(and find nothing)
Thanks in advance.
MSG
16th January 2009 14:05 UTC
Edit: Nevermind, I can't read. >__>
I didn't look into it in detail, but after looking at http://nsis.sourceforge.net/mediawik...27/RecFind.nsh for a few minutes I think there are two bugs in that script:
Line 63: !macro _RecFindOpen Dir CurrentDirVar CurrentFileVar
should be
!macro _RecFindOpen DirVar CurrentDirVar CurrentFileVar
Line 99: Push `${_CurrentDir}\${_CurrentFileVar}`
should be
Push `${_CurrentDirVar}\${_CurrentFileVar}`
Try that, I'm not guaranteeing I'm right but it's worth a shot anyway.
SadE54
16th January 2009 19:06 UTC
I found the same things that you , so I thought that it was a bug . But this file exists for some years ,so it's srange.
but the web page has been updated recently ...
Whith the suggested changes , I can compile but it doesn't work as expected
:(
Afrow UK
16th January 2009 19:36 UTC
I have re-uploaded.
Stu