If I leave it named the way it is the compiler tells me to put an un. in front of it. If I put a un. there it still tells me the same thing.
The problem is similar to this thread. kichik told that poster to "prefix the name of the function with 'un.' in its definition too (in library.nsi)", but I'm not sure that I know what that means. For the installer, I use
to call the function which is placed in TextFunc/TextFunc.nsi.!include "TextFunc.nsh"
!insertmacro LineRead