title: Install TopShelf Service via C# Error Handling
body: <p>I install a Topshelf Service via another C# Application (Win Forms). My problem is if an error occurs in the installation process I don't realize that an error occured.</p>
  
  <p>I use </p>
  
  <pre><code>Process.Start(pathToExeFile, $"install -username:{user} - password:{password}");
  
  </code></pre>
  
  <p>to install the service.</p>
  
  <p><code>user</code> and <code>password</code> are Variables which the user can set in a simple textBox, so for example if the user does not exist, the password is wrong, the winforms application does not have permissions to install a service,... the service installation crashes. The Problem is, the cmd window comes up for a little short time, you only see red text and that's it. The user does not know what went wrong. Is there any way to catch the error in the console window?</p>