Old 26th July 2010, 19:34   #1
Junior Member
Join Date: Jul 2010
Posts: 3
Why Don't The Examples Work?

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

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

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."

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, 19:38   #2
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, 20:37   #3
Afrow UK
Afrow UK's Avatar
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
...or copying the function into your script?

Afrow UK is offline   Reply With Quote
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