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

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

PostgreSQL 9.x - pg_read_binary_file & inserting files into bytea -

asp.net - call stack missing info on mono with apache and mod_mono -