Archive: !insertmacro: macro "FUNCTION_STRING_StrLoc" requires 0 parameter(s), passed 4


[SOLVED] macro "FUNCTION_STRING_StrLoc" requires 0 parameter(s), passed 4
I am trying to use the faster version of ReadCustomerData, as described in this Wiki article:

http://nsis.sourceforge.net/ReadCust...ta#Performance

I pasted the code as is and compiled... I am getting this weird error message:

!insertmacro: macro "FUNCTION_STRING_StrLoc" requires 0 parameter(s), passed 4
I did !include "StrFunc.nsh".

I also checked StrFunc.nsh and it says that it requires 4 parameters.

Why am I getting this error message? What am I missing?

Thanks!

Ah! I found the answer in the StrFunc.txt readme:

Every command used in install sections and functions have to be called first before and out of any sections and functions, and without parameters.