Archive: How to deal with un. functions?


How to deal with un. functions?
I use the function LineRead from TextFunc.nsh in my installer. Now I want my uninstaller to use that function too. How to do?

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

!include "TextFunc.nsh"
!insertmacro LineRead

to call the function which is placed in TextFunc/TextFunc.nsi.

...
!include "TextFunc.nsh"
!insertmacro LineRead
!insertmacro un.LineRead

...
Section un.Install
${un.LineRead} ...
SectionEnd
...