Installutil不会卸载:"指定的服务不作为已安装的服务存在"

Bad*_*pot 6 windows-services installutil uninstall

我一直在尝试使用installutil安装Windows服务:installutil /u GSIS.FileMoverService.exe.

我得到的输出是:

卸载程序集"C:\ FMS\GSIS.FileMoverService.exe".受影响的参数是:

logtoconsole = logfile = C:\ FMS\GSIS.FileMoverService.InstallLog

assemblypath = C:\ FMS\GSIS.FileMoverService.exe删除EventLog源文件移动器服务.

警告:源文件移动器服务未在本地计算机上注册.正在从系统中删除服务文件移动器服务...

卸载System.ServiceProcess.ServiceInstaller安装程序期间发生异常.System.ComponentModel.Win32Exception:指定的服务不作为已安装的服务存在卸载时发生异常.

此异常将被忽略,卸载将继续.但是,卸载完成后可能无法完全卸载应用程序.

我尝试卸载时已停止该服务.它绝对是注册为服务.我重新启动了它,它仍然可以在服务小程序(services.msc)中看到.它还可以从"服务"小程序成功启动和停止,因此它看起来不会成功(或仅部分)安装.

我从VS2010命令提示符(已点击以管理员身份运行)调用installutil.

有任何想法吗?

Bad*_*pot 14

最后,我习惯sc delete GSIS.FileMoverService删除该服务.这很有效.