문제

I am trying to install a windows service on a remote machine. The service is implemented using TopShelf. I am running the following psexec command:

psexec \\remoteServerName "C:\PathToExe\TopShelfServiceName.exe" "install"

The error I am receiving is: ERROR - The service terminated abnormally Topshelf.HostConfigurationException: The service was not properly configured: [Failure] Command Line An unknown command-line option was found: ARGUMENT: "install"

It appears that I am not running the TopShelf installer, rather executing my exe and passing "install" which is not a valid argument.

Any help is appreciated!

도움이 되었습니까?

해결책

I don't think you need quotes around "install":

psexec \\remoteServerName "C:\PathToExe\TopShelfServiceName.exe" install

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top