title: Deleting Registry Key with Batch Script from Uninstall
body: <p>I have a batch script that deletes certain registry keys, it works as a script itself and also from the command line. However, as part of an uninstaller (Installshield), one of the 2 registry keys does not delete. My log file indicates that "the operation completed successfully" but for the life of me, the key is still there. </p>
  
  <p>The command looks like this: </p>
  
  <pre><code>REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\ProgramName\SubEntry" /f
  </code></pre>
  
  <p>and my log file: </p>
  
  <pre><code>REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\ProgramName\SubEntry" /f
  </code></pre>
  
  <p>The operation completed successfully.</p>
  
  <p>I can run the batch script itself as an admin and it works, I always run the installer (to install and uninstall) as an admin. </p>