title: Inno Setup - How to validate serial number online
body: <p>Using Inno Setup, <code>setup.exe</code> was given to a client, according to contract he is allowed only to use 2016 and 2017. But on 01-01-2018 he should not be able to continue with same serial 2017.</p>
  <p>How to make the setup.exe by innosetup limited to from and to date?</p>
  <pre class="lang-pascal prettyprint-override"><code>[Setup]
  #define SerialNumber &quot;2017&quot;
  UserInfoPage=yes
  
  [Code]
  function CheckSerial(Serial: String): Boolean;
  begin
    Result := Serial = '{#SerialNumber}';
  end;
  </code></pre>
  <ul>
  <li>setup.exe is executed</li>
  <li>license key is inserted</li>
  <li>after submit, i want to check URL <code>https://www.example.com/query/license?id=2017</code></li>
  <li>if the result is ok or nok based on that the installation continue</li>
  </ul>