开发者

Visual Studio Windows Service Project and Service Name

开发者 https://www.devze.com 2023-01-04 11:50 出处:网络
I have a windows service project and a 开发者_StackOverflowsetup project. I can\'t figure out how to change the name of the actual service when it is installed (the name listed in windows services . .

I have a windows service project and a 开发者_StackOverflowsetup project. I can't figure out how to change the name of the actual service when it is installed (the name listed in windows services . . . services.msc).


If you view the properties for the installer class there is a property called ServiceName which dictates what the name will be in the list of services.


Change the "DisplayName" in the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\<Service Name> subkey.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号