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: 456
        
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