Go Back   Winamp & SHOUTcast Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 26th July 2010, 18:34   #1
mariocatch
Junior Member
 
Join Date: Jul 2010
Posts: 3
Why Don't The Examples Work?

I'm following the examples at:
http://nsis.sourceforge.net/
ie: http://nsis.sourceforge.net/Search_for_text_in_file

And they don't even work when I compile them.

code:
Section
Push $DESKTOP\MyFile.txt
Push hello
Call FileSearch
Pop $0 #Number of times found throughout
Pop $1 #Number of lines found on

StrCmp $0 0 +2
MessageBox MB_OK "$\"hello$\" was found in the file $0 times on $1 lines."
SectionEnd



Error: resolving install function "FileSearch" in unnamed install section (0)
Note: uninstall functions must begin with "un.", and install functions must not
Error - aborting creation process

Am I missing something? I've installed NSIS.
mariocatch is offline   Reply With Quote
Old 26th July 2010, 18:38   #2
MSG
Major Dude
 
Join Date: Oct 2006
Posts: 1,892
Have you tried including the file that contains FileSearch?
MSG is offline   Reply With Quote
Old 26th July 2010, 19:37   #3
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
...or copying the function into your script?

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