Reference/FileWriteWord
From NSIS Wiki
Jump to navigationJump to search
FileWriteWord
handle string
This function is only available when building a Unicode installer.
Writes the integer interpretation of 'string' as a WORD (2-bytes, range: 0-65535) to a file opened with FileOpen. Of course you can enter the integer value directly. The following code writes a "Carriage Return / Line Feed" - Enter to the file.
FileWriteWord file_handle "13" FileWriteWord file_handle "10"
If an error occurs while writing, the error flag will be set. Note that the low WORD of the integer is used, i.e. writing 65536 is the same as writing 0, etc.