Old 23rd March 2015, 17:41   #1
ZmAn3
Senior Member
 
Join Date: Oct 2003
Posts: 178
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

Last edited by Anders; 9th April 2015 at 17:43. Reason: Title change
ZmAn3 is offline   Reply With Quote
Old 23rd March 2015, 18:10   #2
aerDNA
Senior Member
 
aerDNA's Avatar
 
Join Date: Feb 2007
Location: Rijeka, Croatia
Posts: 225
Version comparison is failing because 3.0b1 is not a number. Just comment out the troublesome code or fix it if you really care.

PostEnd:
aerDNA is offline   Reply With Quote
Old 23rd March 2015, 19:04   #3
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,528
Add this to your .nsi before you include the header:

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

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 23rd March 2015, 19:39   #4
ZmAn3
Senior Member
 
Join Date: Oct 2003
Posts: 178
thank you both
ZmAn3 is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump