title: Setting default browser on Vista/Win7
body: <p>I'd like to set a program as the 'default browser', so that for example, it'll be opened when addresses like <code>http://google.com/</code> are opened by another program or Windows.
  At first I assumed this was the same as XP (via <code>HKCR</code>), but I found that you need to use the 'Default Programs' feature of Vista[+]. The relevant key is stored, I think, at <code>HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\http\UserChoice</code>, but for me that's just 'FirefoxURL', which I assume maps to some larger key elsewhere.<p></p>
  
  <p>How should this be done properly? <p></p>
  
  <p>I've also found that you can use <code>IApplicationAssociationRegistration</code>, but there doesn't seen to be any .NET wrappers around it and I can't find out for the life of me how to go about using it. <p></p>
  
  <p>Any information about how other programs do this or just hints in the right direction is greatly appreciated.</p>