title: VB write to Local Machine Registry
body: <p>I am trying to write to the windows registry using visual basic.
  I want to write to HKEY_LOCAL_MACHINE but keep getting access denied, even when my setup program runs as administrator.</p>
  
  <p>The path and code I am using is this:</p>
  
  <pre><code>My.Computer.Registry.SetValue("HKEY_LOCAL_MACHINE\SOFTWARE\Autodesk\AutoCAD\R19.1\ACAD-D001\Variables\SECURELOAD", "(Default)", "0")
  </code></pre>