title: How to run msi installer in cmd as admin using C#
body: <p>I have an msi installer that I need to install it silently from the C#</p>
  
  <pre><code>Process process = new Process();
  process.StartInfo.FileName = "cmd.exe";
  process.StartInfo.WorkingDirectory = @"C:\temp\";
  process.StartInfo.Arguments = "msiexec /quiet /i Setup.msi ADDLOCAL=test";
  process.StartInfo.Verb = "runas";
  process.Start();
  process.WaitForExit(60000);
  </code></pre>
  
  <p>noting that the cmd command is working fine if I manually run it from the cmd as admin </p>
  
  <p>when I run it I just get the cmd screen in admin mode but the command does not executing </p>