安装使用Windows命令提示符下一个Windows服务? [英] Install a Windows service using a Windows command prompt?

查看:230
本文介绍了安装使用Windows命令提示符下一个Windows服务?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想用Windows命令提示符(而不是在Visual Studio命令提示符)安装一个Windows服务。

I want to install a Windows service using a Windows command prompt (not the Visual Studio command prompt).

我如何做到这一点?

推荐答案

导航到你的.NET文件夹中的installutil.exe(用于.NET 4是C:\Windows\Microsoft.NET\Framework \v4.0.30319为例),并用它来安装你的服务,如:

Navigate to the installutil.exe in your .net folder (for .net 4 it's C:\Windows\Microsoft.NET\Framework\v4.0.30319 for example) and use it to install your service, like this:

"C:\Windows\Microsoft.NET\Framework\v4.0.30319\installutil.exe" "c:\myservice.exe"

这篇关于安装使用Windows命令提示符下一个Windows服务?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆