question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 7 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
develarcommented, Jan 16, 2017
0reactions
zwdgitcommented, Jan 20, 2020

Encountered the same problem

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found