Running Multiple Instances of a Windows Service Using TopShelf
September 24, 2009
Here is another one where I post about something Josh and team did that I borrowed and am using to great effect. When a console app or a windows service needed we like to use TopShelf to get the job done. In this post I’ll show how to get two instances of a Windows service running on one machine using TopShelf. Updated: As Mike points out in the comments below as of revision 46 Dru added a command line parameter to handle this scenario. Great! Much better than our hacky solution below (written before this revision). Please skip this post and just add a service install /instance:<name> argument at the command line to install additional windows services. Here is an example: YourApplication.exe service install /instance:NumeroDos Now back to the original post which should be ignored so stop reading now <grin>.…