c# - How can I change the name of a windows service? -


i have windows service application developed in c#. same service needs run different config files. run on these on same machine need change name of service. can create multiple copies of solution, not sure how change names of services.

thanks

in win service class derives servicebase, there property inherited can set called servicename. make app.config, add setting service name , have win service class assign property accordingly. way each service name unique long change setting in app.config.


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -