title: installutil with windows service installs, then immediately uninstalls custom windows service
body: <p>I have a custom windows service written in c# that I need to install and debug. When I use </p>
  
  <pre><code>installutil "[path].exe"
  </code></pre>
  
  <p>from the command line and then try and search for the service, it doesn't appear in the list of installed services anywhere. Looking at the install log file, i see this:</p>
  
  <pre><code>Installing assembly 'myservice'.   
  Affected parameters are:  
     logtoconsole =    
     assemblypath = mypath  
     logfile = mylogfile  
  Installing service MyService  
  Service MyService has been successfully installed.  
  Creating EventLog source MyService in log Application...  
  Committing assembly 'myservice'.  
  Affected parameters are:  
     logtoconsole =   
     assemblypath = myservice  
     logfile = pathtoinstalllog  
  Uninstalling assembly myservice  
  Affected parameters are:  
     logtoconsole =   
     assemblypath = myservice   
     logfile = pathtoinstalllog  
  Removing EventLog source myservice.  
  Service myservice is being removed from the system...  
  Service myservice was successfully removed from the system.  
  Uninstalling assembly myservice'.  
  Affected parameters are:    
     logtoconsole =   
     assemblypath = myservice  
     logfile = pathtoinstalllog  
  Removing EventLog source myservice.  
  Service myservice is being removed from the system...  
  Service myservice was successfully removed from the system.
  </code></pre>
  
  <p>(The names path, myservice, pathtoinstalllog, etc are in place of company specifics)</p>
  
  <p>Anyway, from the log file it looks as if the service is being installed and then immediately uninstalled...</p>
  
  <p>If any more code or info is needed, let me know, and thanks in advance.</p>