SharpeRAD/Cake.Services

Install is broken

nalla opened this issue · 1 comments

nalla commented

Hi,

https://github.com/SharpeRAD/Cake.Services/blob/master/src/Services/Manager/ServiceManager.cs#L886

indicates that you are missing the = sign as part of the argument.

USAGE:
        sc <server> create [service name] [binPath= ] <option1> <option2>...

OPTIONS:
NOTE: The option name includes the equal sign.
      A space is required between the equal sign and the value.
 type= <own|share|interact|kernel|filesys|rec|userown|usershare>
       (default = own)
 start= <boot|system|auto|demand|disabled|delayed-auto>
       (default = demand)
 error= <normal|severe|critical|ignore>
       (default = normal)
 binPath= <BinaryPathName to the .exe file>
 group= <LoadOrderGroup>
 tag= <yes|no>
 depend= <Dependencies(separated by / (forward slash))>
 obj= <AccountName|ObjectName>
       (default = LocalSystem)
 DisplayName= <display name>
 password= <password>

When I try to use this, it actually is executing

& "sc.exe" create "Name" -binPath "C:\Some\Path" -DisplayName "Foo"

What It should execute is

& "sc.exe" create "Name" binPath= "C:\Some\Path" DisplayName= "Foo"

Fixed in v0.2.7