|
|
#1 |
|
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. |
|
|
|
|
|
#2 |
|
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. |
|
|
|
|
|
#3 |
|
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
|
|
|
|
|
|
#4 |
|
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
I have re-uploaded.
Stu |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|