Old 16th January 2009, 12:59   #1
SadE54
Junior Member
 
Join Date: Jan 2009
Posts: 2
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.
SadE54 is offline   Reply With Quote
Old 16th January 2009, 13:05   #2
MSG
Major Dude
 
Join Date: Oct 2006
Posts: 1,892
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.
MSG is offline   Reply With Quote
Old 16th January 2009, 18:06   #3
SadE54
Junior Member
 
Join Date: Jan 2009
Posts: 2
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
SadE54 is offline   Reply With Quote
Old 16th January 2009, 18:36   #4
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
I have re-uploaded.

Stu
Afrow UK is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump