I am trying to write my own "include" script for nsis. I cannot seem to make function definitions though? Inside my macro I have the following:
!macro customInstall
Call Foo
# ...
!macroend
Function Foo
# ...
FunctionEnd
Keep getting this error though: warning: install function "Foo" not referenced - zeroing code (0-120) out
I don't see what I am doing wrong. I tried moving the function into the macro but then it complained to me about having a function in a function.
Please wrap it into
!ifndef BUILD_UNINSTALLER
!endif
@develar What do you need to wrap? the Call to the function? or the function definition?
The function definition. I am not sure that it is actual now.
@develar Was this ever resolved? I'm having the same issue. Simply can't use a function in custom NSIS script at all.
Encountered the same problem
Most helpful comment
Please wrap it into
e.g. https://github.com/electron-userland/electron-builder/blob/master/packages/electron-builder/templates/nsis/common.nsh