title: Visual studio deployment project error when writing to registry
body: <p>I have a setup for an application that was recently converted to be a framework 4.0 project (don't know if it's relevant). The setup has to write to registry (Local Machine) and until now this has always worked perfectly, however now it fails to write to registry on a clean machine (running Windows 7, 64 bit).</p>
  
  <p>The setup does not fail, does not show a warning of any kind, however it does not write to the registry (I even set AlwaysCreate property to true on <strong>every</strong> key, just in case) which of course causes the application to terminate on startup.</p>
  
  <p>What could be the cause of this? I have never encountered such an error before.</p>
  
  <p><strong>Edit:</strong> I have tried running the installer as administrator, didn't change anything.</p>