Where Windows service programs are easy to mix up !, Windows
When developing a Windows service program, we generally need to add the installer, namely, serviceInstaller. Do you understand the name attributes?
1. Description: service Description (describes what the service is doing );
2. DisplayName: indicates a friendly name, which can be understood as an alias of a service name;
3. ServiceName: indicates the service name. This is the real service name. It is different from DisplayName and is the basis for system identification;
These three attributes are in Windows 7 and later operating systems, but they are different from each other:
In the local service list: (services. msc)
The name column displays DisplayName,
Description is displayed in the Description column.
In the WINDOWS Task Manager service tab list:
The name column displays ServiceName,
The description column displays DisplayName.
I was previously confused by these three attributes. The installation was successful and can be seen in the service list of the task manager, but it cannot be found in the service list, in fact, ServiceName and DisplayName are wrong.
The image is as follows:
Reference page: http://qingqingquege.cnblogs.com/p/5933752.html