When developing a Windows service program, we generally need to add the installer, namely: ServiceInstaller, there are several about the name attribute, you understand it?
1.Description: Indicates the service description (describes what the service is doing);
2.DisplayName: A friendly name that can be understood as the alias of the service name;
3.ServiceName: Indicates the service name, this is the real service name, and DisplayName is the difference, oh, is the basis of system identification;
These three properties are in WIN7 and later operating systems, but the same attribute but the representation is different:
Local Service list: (i.e.: services.msc)
The Name column shows the DisplayName,
The description column shows the description.
In the list of service tabs in Windows Task Manager:
The Name column shows the ServiceName,
The description column shows the displayname.
I was by these three properties to confuse, appeared to install the success, in the Task Manager's list of services can be seen, but in the list of services could not find, in fact, will servicename and DisplayName mistaken.
The picture is as follows:
About developing Windows service programs easy to confuse!