导航到.net文件夹中的installutil.exe(例如,对于.net 4,它为C: Windows Microsoft.NET
framework v4.0.30319),并使用它来安装服务,如下所示:
"C:WindowsMicrosoft.NETframeworkv4.0.30319installutil.exe" "c:myservice.exe"

导航到.net文件夹中的installutil.exe(例如,对于.net 4,它为C: Windows Microsoft.NET
framework v4.0.30319),并使用它来安装服务,如下所示:
"C:WindowsMicrosoft.NETframeworkv4.0.30319installutil.exe" "c:myservice.exe"