Writing binary file in Inno Setup
<p>How does one write to a binary file in Inno Setup script? It's a configuration file I want to edit in the <code>PrepareToInstall</code> step. The problem is that I'm looking at the support functions:</p>

<pre class="lang-pascal prettyprint-override"><code>TStream = class(TObject)
  function Read(Buffer: String; Count: Longint): Longint;
  function Write(Buffer: String; Count: Longint): Longint;
  function Seek(Offset: Longint; Origin: Word): Longint;
  procedure ReadBuffer(Buffer: String; Count: Longint);
  procedure WriteBuffer(Buffer: String; Count: Longint);
  function CopyFrom(Source: TStream; Count: Longint): Longint;
  property Position: Longint; read write;
  property Size: Longint; read write;
end;
</code></pre>

<p>And it seems even the most basic write function writes strings. Should I just do it in a batch script?</p>