title: windows forms application does not starting on an other mashine
body: <p>I use the Microsoft.Win32 namespace in my windows forms application.
  I install my application on an other mashine and it does not starting.
  If this namespace was deleted from my application, the application will starting.</p>
  
  <p>why?</p>
  
  <p>Thanks the help, and sorry my english :)</p>
  
  <p>My app:</p>
  
  <pre><code>using Microsoft.Win32;
  
  
      RegistryKey key = Registry.CurrentUser.CreateSubKey("Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\System");
      public Form1()
      {
          InitializeComponent();
      }
  
      private void Form1_Load(object sender, EventArgs e)
      {
          disableTM();
          disableBTN.Enabled = false;
      }
  
      private void enableBTN_Click(object sender, EventArgs e)
      {
          enableTM();
          enableBTN.Enabled = false;
          disableBTN.Enabled = true;
      }
  
      private void disableBTN_Click(object sender, EventArgs e)
      {
          disableTM();
          disableBTN.Enabled = false;
          enableBTN.Enabled = true;
      }
  
  
  
  
      private void disableTM()
      {
          try
          {
              key.SetValue("DisableTaskMgr", 1);
          }
          catch (Exception ex)
          {
              MessageBox.Show(ex.ToString());
          }
      }
      private void enableTM()
      {
          try
          {
              Registry.CurrentUser.DeleteSubKey("Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\System");
          }
          catch (Exception ex)
          {
              MessageBox.Show(ex.ToString());
          }
      }
  </code></pre>