NSIS include functions
See original GitHub issue- Version: 11.4.1
- Target: Windows
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.
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Macro vs Function - NSIS Wiki
Macros and Functions in NSIS are powerful tools to help make coding your installer easier and more flexible. They can also be very...
Read more >How to put functions in different files in NSIS - Stack Overflow
I have a couple of functions in the NSIS installer. I want to keep them neatly in separate files. For example, the main...
Read more >Common function for Installer and uninstall - NSIS Forums
The same function will be called while uninstallation. ... "Function names beginning with "un." are functions that will be generated in the ...
Read more >Quick Guide to NSIS
The default extension for a script file is .nsi. Header files have the .nsh extension. To include a header file in your script...
Read more >Hello, world! in NSIS - the simplest NSIS script
1) call to OutFile function (in order to define installer's name and ... include that header in the script and call function it...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Please wrap it into
e.g. https://github.com/electron-userland/electron-builder/blob/master/packages/electron-builder/templates/nsis/common.nsh
Encountered the same problem