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
Post a Comment