【问题标题】:install a service on a remote computer from a MSBuild script从 MSBuild 脚本在远程计算机上安装服务
【发布时间】:2011-02-10 02:59:00
【问题描述】:

我有这个创建服务的任务:

目标名称="InstallService" DependsOnTargets="CopyFiles"
Exec Command="sc \remotecomputer create "ServiceHost" binPath="E:\ServiceHost.exe" DisplayName="ServiceHost"" WorkingDirectory="c:\" ContinueOnError="false" /目标

问题是当我运行这个脚本时它不知道\ \远程计算机。

【问题讨论】:

    标签: .net msbuild teamcity msbuild-task


    【解决方案1】:

    我想通了:你必须这样使用它:"""\ \remotecomputer"""

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2023-03-25
      • 2022-10-17
      • 2014-06-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-09-17
      相关资源
      最近更新 更多