Hello!
Can I use MessageBoxW from ANSI-installer (convert it to Unicode-installer not possible at this time)? Or I need use plugin for it?
Thanks.
messageboxw in ansi nsis installer
2 posts
You can but I don't see how useful it is, you would have to get a pointer to some memory with Unicode text from somewhere first?
RequestExecutionLevel User
!if "${NSIS_CHAR_SIZE}" > 1
Unicode False
!endif
Section
System::Call 'USER32::MessageBoxW(i$hWndParent, w "This is technically displayed as Unicode", w "Basically ASCII", i0)'
System::Call 'KERNEL32::lstrcpyW(@r1, w "NSIS")' ; NSIS v3 syntax, just used to get some memory
System::Call '*$1(&i2 0x2115,&i2 0x0282, &i2 0x2669, &i2 0x1E63, &i2 0)' ; Write UTF-16LE codepoints directly into memory
System::Call 'USER32::MessageBoxW(i$hWndParent, p$1, w "Non-ASCII!", i0)'
SectionEnd