Command line to install Unity's cache server as a service on windows

I’ve tried both sc.exe and InstallUtil.exe with no success.

With SC the service is at least added. But when trying to run the service I get an error: “The service did not respond to the start or control request in a timely fashion”. That happens in like 2 seconds at most. I’ve also tried all different types.

While InstallUtil will say “The module was expected to contain an assembly manifest…”, no matter what.

Anyone can give a clue on how to install it on a windows server? Thanks!

I’ve successfully used nssm to install it as a service, with no problem.