Skip to content
⌘ NSIS Forum Archive

WndSubclass and NSIS v3

4 posts

ZmAn3#edited

WndSubclass and NSIS v3

just trying to compile a old installer test file I made a while back and got this error
I'm assuming its because im using nsis 3?


!include: "WndSubclass.nsh" (ACP)
!define: "_WNDSUBCLASS__INC"=""
!define: "__WNDSUBCLASS_NSISV"=""
warning: Invalid number: "" (WndSubclass.nsh:7)
!undef: "__WNDSUBCLASS_NSISV"
!error: NSIS v2.42 and later required!
!include: error in script: "WndSubclass.nsh" on line 14
aerDNA#
Version comparison is failing because 3.0b1 is not a number. Just comment out the troublesome code or fix it if you really care.
Anders#
Add this to your .nsi before you include the header:

!if "${NSIS_CHAR_SIZE}" = 1
!define __WNDSUBCLASS_NSISVEROK
!endif