C:\Windows\system32>sc create EnviroTracker1 binpath= "D:\Freelance Work\SuperExpert\git EnviroTrack\EnviroTrack\EnviroTrackerService\bin\Release\EnviroTrackService.exe"
[SC] CreateService SUCCESS
之后,我进入管理员工具->服务,并尝试启动服务,但是我收到了以下错误:
我也尝试了installutil。在那种情况下,服务已被安装,其启动类型为自动,并且在服务属性窗口中,服务状态为自动。请为我提供解决方案。---------------------------
Services
---------------------------
Windows could not start the EnviroTracker1 service on Local Computer.
Error 1053: The service did not respond to the start or control request in a timely fashion.
---------------------------
OK
---------------------------
谢谢。