Reference/FileWriteUTF16LE
From NSIS Wiki
Jump to navigationJump to search
FileWriteUTF16LE
handle string
This function is only available when building a Unicode installer.
Writes a Unicode (UTF-16LE) string to a file opened with FileOpen. If an error occurs writing, the error flag will be set.
ClearErrors FileOpen $0 $INSTDIR\file.dat w IfErrors done FileWriteUTF16LE $0 "some text" FileClose $0 done: