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