title: c# process exiting immediately without running .exe
body: <p>I'm attempting to launch slui.exe for users not on our network so they can validate their Windows installations via our MAK key with a c# program, but the process will just exit immediately when compiled to an .exe; If I run the program in debug mode from VS 2010 it will run successfully, or if I launch the .exe on a machine with VS2010 installed it will also run successfully. My code looks like:</p>
  
  <pre><code>string path = Environment.SystemDirectory;
  ProcessStartInfo startInfo = new ProcessStartInfo(path + "\\slui.exe");
  startInfo.Arguments = 4;
  Process p = new Process();
  p.StartInfo = startInfo;
  p.Start();
  p.WaitForExit();
  </code></pre>
  
  <p>I've tried running process explorer and it doesn't show any processes beginning when I attempt to run this code. </p>
  
  <p>Could there be something with .net?? I'm running .net 4 on both machines, so I didn't think that was the problem. </p>
  
  <p>I'm really confused why this code will work fine on my development machine either in debug mode or compiled to an .exe, but not on other machines; I must be missing a dependency somewhere.</p>
  
  <p>Any help would be greatly appreciated!</p>