Thread: nsJSON plug-in
View Single Post
Old 1st March 2016, 19:56   #47
JasonFriday13
Major Dude
 
JasonFriday13's Avatar
 
Join Date: May 2005
Location: New Zealand
Posts: 884
Quote:
Originally Posted by Marshallx7 View Post
I'm also having trouble using the unicode version of the plugin:

code:
OutFile "test.exe"
!define SETTING_UNICODE
!ifdef SETTING_UNICODE
Unicode true
!addplugindir /x86-unicode "./plugins/x86-unicode"
!else
Unicode false
!addplugindir /x86-ansi "./plugins/x86-ansi"
!endif
Page instfiles
Function .onInit
nsjson::set /tree testTree testNode /value testValue
nsjson::get /tree testTree testNode /end
Pop $R0
MessageBox MB_OK $R0 ; "testValue"
FunctionEnd
Section "dummy"
SectionEnd



With the ansi version, the message box reads "testValue" as expected, but with the unicode version is just says "t".
Sounds like you are using the ansi version for both ansi and unicode installers.

By the way, if the plugins are copied correctly to both '${NSISDIR}\plugins\x86-ansi' and '${NSISDIR}\plugins\x86-unicode', then you don't need to use !addplugindir. 'Unicode True' does that work for you.

"Only a MouseHelmet will save you from a MouseTrap" -Jason Ross (Me)
NSIS 3 POSIX Ninja
Wiki Profile
JasonFriday13 is offline   Reply With Quote