You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
; adding dummy call to the end of installer scriptFunction __keep_SemanticVersionCompare
; Dummy call to trick NSIS compiler into keeping the function Call SemanticVersionCompare
FunctionEnd; declare Function inside customInit!macro customInit
Function SemanticVersionCompare
; ... FunctionEnd!macroend; insert CheckVersion in customInit!macro customInit
!insertmacro CheckVersion
!macroend; wrap function in ifndef BUILD_UNINSTALLER block; also wrap it in BUILD_INSTALLER block!ifndef BUILD_UNINSTALLER
Function SemanticVersionCompare
!endif
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
What is the correct way to include or use Functions in custom macros like
customInstall
?I've seen similar issues that have been ignored along the years and I do not understand why:
#1122
#1231
#1239
#3871
#4777
This is a real issue !
The docs do not mention how to include functions when using custom electron scripts.
Please answer.
Thank you.
I include the script like this in
package.json
:"include": "build/installer.nsh",
I have defined
Function SemanticVersionCompare
in a script file calledversion-check.nsh
:installer.nsh
I have tried these tricks to no avail:
The text was updated successfully, but these errors were encountered: