title: Launching installer from C#
body: <p>I have a winform application from which i'm running a separate bat file.
  Once that bat file starts, it calls a setup.exe for the mysql desktop server engine. The setup.exe opens up and starts running, but only for like 1 second then it exits without any warning or error. The bat file continues to process the rest of the script.</p>
  
  <p>Why is this happening? If i run the bat file separately (not from c#), it waits for the installation to be done and then proceeds with the script.</p>
  
  <p>Thanks for the help</p>
  
  <p>CODE ADDED:</p>
  
  <pre><code>            System.Diagnostics.Process proc = new System.Diagnostics.Process();
  
              if (File.Exists(@"C:\Program Files\Database setup\install.bat"))
              {
                  MessageBox.Show("Please restart the machine after installation is finished.");
                  proc.StartInfo.FileName = @"C:\Program Files\Database setup\install.bat";
                  proc.Start();   
  
                  //PROBLEM WITH INSTALLATION of SQLSERVER (INSTALL QUITS)
              }
  </code></pre>