Skip to content
⌘ NSIS Forum Archive

[Plugin] nsisFile : Manipulate file content, especially binary data

1 posts

Wizou#

[Plugin] nsisFile : Manipulate file content, especially binary data

I have released nsisFile 1.0, my small NSIS plugin to manipulate file content, especially binary data.
Web site: http://wiz0u.free.fr/prog/nsisFile

You can typically use it to:
  • search for binary patterns in file
  • read or write (patch) binary data from/to binary files


It completes NSIS file capabilities with the handling of binary data. You can create automatic file patchers easily with this plugin.

List of functions in this version:
  • nsisFile::BinToHex <string>
  • nsisFile::HexToBin <hex string>
  • nsisFile::FileReadBytes <file handle> <length>
  • nsisFile::FileWriteBytes <file handle> <hex string>
  • nsisFile::FileFindBytes <file handle> <hex string> <length>
  • nsisFile::FileTruncate <file handle>

(Function result is returned on NSIS stack : Use "Pop" to retrieve it)