如何使用C#代码安装/卸载Windows服务 [英] How to install/uninstal windows service with C# code

查看:106
本文介绍了如何使用C#代码安装/卸载Windows服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

谷歌我发现了很多关于这个的articeles,但他们都只是使用标准的windows installUtil,但我想自己做,因为我需要找到多个服务,卸载,重命名并用GUI界面重新安装它们。 br />


那么如何使用C#代码卸载服务?

With google I found lots of articeles about this but they all just use the standard windows installUtil but I want to do it myself as I need to find multiple services, uninstall, rename and re-install them with a GUI interface.

So how do I uninstall a service with C# code?

推荐答案

请参阅我以前的答案:< a href =http://www.codeproject.com/Answers/188726/How-to-install-windows-service-programmatically#answer1>如何以编程方式安装Windows服务 [ ^ ]。



-SA
Please see my past answer: How to install windows service programmatically[^].

—SA


另一个链接 - 以编程方式安装服务 [ ^ ]。
Another link - Installing a Service Programmatically[^].


这篇关于如何使用C#代码安装/卸载Windows服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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