title: Find existing program path from registry
body: <p>How do I find the path of an existing program, so that I can add some more files to one of its directories?</p>
  
  <p>The program has the registry information under:</p>
  
  <pre><code>SOFTWARE\GRAPHISOFT SE\ARCHICAD 22\
  </code></pre>
  
  <p>The following code does not work for me:</p>
  
  <pre><code>#define PATH ReadReg(HKEY_LOCAL_MACHINE, "SOFTWARE\GRAPHISOFT SE\ARCHICAD 22\") 
  DefaultDirName={#PATH}
  </code></pre>