title: Get decimal value from a DWORD in the registry
body: <p>I'm trying to retrieve de int value of this reg dword:
  SOFTWARE\Microsoft\Windows NT\CurrentVersion\InstallDate</p>
  
  <p>I'm able to retrieve a strings' value, but i cant get the int value of the dword...
  At the end, i would like to have the install date of windows.
  I searched an found some solutions, but none worked.</p>
  
  <p>I'm starting with this:</p>
  
  <pre><code>public void setWindowsInstallDate()
  {
      RegistryKey key = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\Windows\NT\CurrentVersion");
      if (key != null)
      {
          object value = key.GetValue("InstallDate");
          // some extra code ??? ...
          WindowsInstallDate = value;
      }
  }
  </code></pre>
  
  <p>Any suggestions?</p>