title: How to read from registry key in a cycle
body: <p>I'm making an installer that adds features to a previously installed program, kind of add-on. </p>
  
  <p>The must-present program adds registry keys according to the release. </p>
  
  <p>I want to read this key and check if the to-be installed add-on is compatible with the present version of the program to allow it to be installed, otherwise I want to display a notification message informing that no compatible version is present.</p>
  
  <p>My code until now is:</p>
  
  <pre><code>Result: = RegKeyExists (HKEY_LOCAL_MACHINE, 'Software\Wow6432Node\Program\5.0.0');  
       if Result = False Then  
          MsgBox ('Error: NOT program is installed', mbInformation, MB_OK);  
       if Result = True Then      
          .....`
  </code></pre>
  
  <p>Version numbering goes like 5.0.0, 5.0.1, 5.0.2, 5.0.3 ....</p>
  
  <p>I want to check for a bunch of compatible versions on a cycle, how can I achieve this?</p>