; ; Override BrandingText. Cannot use BrandingText command because it will be overridden in ; node_modules/electron-builder/templates/nsis/common.nsh ; !include WinMessages.nsh Var brandingName !define MUI_CUSTOMFUNCTION_GUIINIT myGuiInit Function myGUIInit StrCpy $brandingName "${VERSION}" "" 1 StrCpy $brandingName "v2018$brandingName" FindWindow $0 "#32770" "" $HWNDPARENT GetDlgItem $0 $HWNDPARENT 1028 SendMessage $0 ${WM_SETTEXT} 0 "STR:$brandingName" FunctionEnd