title: Start application at when windows Starts
body: <p><strong>I have checked some other examples.</strong></p>
  
  <p>I am working on a winfrom. &amp; now i am going to create its installer.</p>
  
  <p>i want to start the software when windows starts &amp; trying to use the following code.</p>
  
  <pre><code>RegistryKey rkApp = Registry.CurrentUser.OpenSubKey("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run", true);
  rkApp.SetValue("MyApp", Application.ExecutablePath.ToString());
  </code></pre>
  
  <p>But i am confused that where to put this code.
  i don't want this code executed every time when my application starts as it will executed once when the software is installed.</p>
  
  <p>shall i put check on form_Load() if the regkey is absent, &amp; if yes then add this value to the Run.</p>
  
  <p>is it correct ?
  i don't want to give an option to the user &amp; i want to start this application at the startup compulsorily.</p>
  
  <p>Thanks.</p>