Electron-builder: NSIS include functions

Created on 16 Jan 2017  路  5Comments  路  Source: electron-userland/electron-builder

  • 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.

nsis question windows

Most helpful comment

All 5 comments

@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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

JohnWeisz picture JohnWeisz  路  3Comments

noahprince22 picture noahprince22  路  3Comments

omarkilani picture omarkilani  路  3Comments

NPellet picture NPellet  路  3Comments

StickNitro picture StickNitro  路  3Comments