Concatenating string and integer fails with "Type mismatch" error
<p>I have the following Inno Setup script, and I'm getting this error on the <code>SaveStringToFile</code> line:</p>
<blockquote>
<p>Type Mismatch</p>
</blockquote>
<p>Can anybody spot my mistake?</p>
<p>Thank you!</p>
<pre class="lang-pascal prettyprint-override"><code>var
  ErrorCode: Integer;
begin
  ShellExec(
    'open', 'taskkill.exe', '/f /im procterm.exe', '', SW_HIDE,
    ewWaitUntilTerminated, ErrorCode);

  SaveStringToFile(
    'c:\program data\myapp\innolog.txt',
    'Error code for procterm was: ' + ErrorCode, True);
end;
</code></pre>