title: InnoSetup and automatic update
body: <p>I am trying to build installer using InnoSetup. I want automatically upgrade application when update will be available. </p>
  
  <p>Following is algorithm I am trying to implement. </p>
  
  <ol>
  <li><p>When every time app is started, get the latest build info from server file.</p></li>
  <li><p>Compare it with current version of build.</p></li>
  <li><p>If current_version &lt; latest_version, then download the latest build.</p></li>
  <li><p>Quit current app. </p></li>
  <li><p>Install New build.</p></li>
  <li><p>Launch New app. </p></li>
  </ol>
  
  <p>I checked various examples on internet. Most of examples start with 
  <code>
  Procedure InitializeWizard
  </code></p>
  
  <p>But what I suspect <code>InitializeWizard</code> only checks at start of setup, not at time of launch.</p>
  
  <p>Is that true?</p>
  
  <p>If it is then is there any way in innosetup to check this or do I take care from application code itself?</p>
  
  <p>Thank you.</p>