title: If condition in windows registry file
body: <p>I want to check if a key exists in the registry, and, if so, add a new entry. As an example:</p>
  
  <pre><code>IF [HKEY_LOCAL_MACHINE\SOFTWARE\MySoftware]
  [HKEY_LOCAL_MACHINE\SOFTWARE\MySoftware\]
  "name"="my name"
  ENDIF
  </code></pre>
  
  <p>I don't want to use *.bat files or any other scripting. Is there a way to do this <strong>using only</strong> a <code>*.reg</code> file?</p>