是否有在 Windows Server 2008 上安装和删除 .Net 服务的官方 GUI 方法?

发布于 2024-09-06 08:06:13 字数 739 浏览 8 评论 0原文

请阅读整个问题;我个人认为与编程相关;如果您不这么认为,请迁移而不投反对票。

我发现了两种不同的安装服务的方法: http://www.wsinnovations.com/softeng/support/manualservice.html

以及使用 http://msdn.microsoft。 com/en-us/library/50614e95(VS.80).aspx

我要求这个的原因是我正在尝试调试一个应该以某种方式自我更新的服务。它目前不起作用,但我被告知这在过去确实有效。

我一直在使用 sc delete 命令删除该服务(因为这样会更短),同时使用 installutil 命令安装它。我希望这不会导致任何副作用;我想排除这些。

理想情况下,应该可以直接从屏幕安装和卸载服务,让用户启动和停止它们,但不幸的是,这样的选项并不存在。我正在寻找下一个最好的东西,它是 installutil.exe 的 GUI 包装器

Please read the whole question; I personally think that this is programming-related; if you think otherwise, then please migrate without down-voting.

I have found two different ways of installing a service:
http://www.wsinnovations.com/softeng/support/manualservice.html

as well as using http://msdn.microsoft.com/en-us/library/50614e95(VS.80).aspx

The reason why I ask for this is that I am trying to debug a service which is somehow supposed to update itself. It is not currently working, but I was told that this did work in the past.

I have been using the sc delete <servicename> command to remove the service (because it is shorter that way), while installing it with an installutil command. I hope this does not result in any side-effects; I would like to rule those out.

Ideally, it should be possible to install and uninstall services right from the screen which lets the user start and stop them, but such option is not does not exist unfortunately. I am looking for the next best thing, which is a GUI wrapper for installutil.exe

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

绮烟 2024-09-13 08:06:13

不——我相信不是你想的那样。 GUI 方式将作为 MSI 或其他安装程序的一部分,它调用与 installutil 相同的 API。

因此,您可以做的是编写一个可以静默运行的安装程序,然后使用它来安装和卸载。

No - not in the way I believe you're thinking of. The GUI way would be as part of an MSI or other installer, which calls the same APIs as installutil does.

So what you could do is write an installer which can run silently, and then use that to install and uninstall.

无远思近则忧 2024-09-13 08:06:13

您可以使用众多安装框架之一创建安装程序。我个人使用 WiX 并且有很多 关于如何编写此类内容的示例

You could create an installer using one of the many installation frameworks out there. I personally use WiX and there are a bunch of examples out there about how to write these sorts of things.

情域 2024-09-13 08:06:13

也许看看这里,对底层 API 有一个印象:安装没有InstallUtil.exe的.NET Windows服务

Maybe have a look here to get an impression of the underlying API: Install a .NET windows service without InstallUtil.exe

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文