使用Installutil安装系统服务方法

系统必须装有.net Framework2.0
然后点击开始-运行输入以下指令即可完成相应操作
安装服务:
C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/InstallUtil.exe FilePath/xx.exe
卸载服务:
C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/InstallUtil.exe -u FilePath/xx.exe

安装工具InstallUtil.exe让你可以通过执行指定路径中的安装程序来安装和卸载服务。

以上文件路径有空格时会导致无法解析,可以给文件路径加上半角双引号解决。
比如路径C:This is a test,可改为"C:This is a test"

原文地址:https://www.cnblogs.com/cm186man/p/3264240.html