title: How can I check SQLCMD.EXE if it is installed on client in Inno Setup
body: <p>I am writing a script for Inno Setup installer and I want my script to check if the client has the tool <code>SQLCMD.EXE</code> or not.</p>
  <p>I do not know how to do that, is there any script to check for example the registry and tell the client it is not installed ; the msgBox <em>'Do you want to install them from Microsoft Site?'</em></p>
  <p>I found this but does not work</p>
  <pre class="lang-pascal prettyprint-override"><code>if RegQueryStringValue(
    HKLM, 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\Client SDK\ODBC\110\Tools\Binn'.
  </code></pre>
  <ul>
  <li>MySQL Version is 2014 &amp;</li>
  <li>Microsoft SQL Server Management Studio    12.0.2000.8</li>
  </ul>
  <p>I found it here: <a href="https://www.microsoft.com/en-us/download/details.aspx?id=36433" rel="nofollow noreferrer">https://www.microsoft.com/en-us/download/details.aspx?id=36433</a></p>
  <p>Thanks</p>