install a service on a remote computer from a MSBuild script

Posted by Raul on Stack Overflow See other posts from Stack Overflow or by Raul
Published on 2010-04-20T12:20:27Z Indexed on 2010/04/20 12:23 UTC
Read the original article Hit count: 357

Filed under:
|
|
|

I have this task that creates a service:

Target Name="InstallService" DependsOnTargets="CopyFiles" Exec Command="sc \remotecomputer create "ServiceHost" binPath= "E:\ServiceHost.exe" DisplayName= "ServiceHost"" WorkingDirectory="c:\" ContinueOnError="false" / /Target

The problem is that when I run this script it doesn't know the \remotecomputer.

© Stack Overflow or respective owner

Related posts about .NET

Related posts about msbuild