安装.NET Windows服务NET、Windows

2023-09-03 23:28:23 作者:冷香萦遍红楼梦

我试图安装我写了使用的第一个服务:

I'm trying to install the first service I wrote using:

installutil XMPPMonitor.exe

我得到以下信息:

I get the following message:

Running a transacted installation.

Beginning the Install phase of the installation.
See the contents of the log file for the E:\Documents\Projects\XMPPMonitor\XMPPMonitor\bin\Debug\XMPPMonitor.exe assembly's progress.
The file is located at E:\Documents\Projects\XMPPMonitor\XMPPMonitor\bin\Debug\XMPPMonitor.InstallLog.

The Install phase completed successfully, and the Commit phase is beginning.
See the contents of the log file for the E:\Documents\Projects\XMPPMonitor\XMPPMonitor\bin\Debug\XMPPMonitor.exe assembly's progress.
The file is located at E:\Documents\Projects\XMPPMonitor\XMPPMonitor\bin\Debug\XMPPMonitor.InstallLog.

The Commit phase completed successfully.


The transacted install has completed.

但我不会设置,当我运行services.msc列出的服务。我失去了一些东西?

But I'm not setting the service listed when I run services.msc. Am I missing something?

推荐答案

请确保您正确地创建和配置的的ServiceInstaller 和的 ServiceProcessInstaller 。这些是installutil使用过程中的实际注册的每个服务。

Make sure you correctly created and configured the ServiceInstaller and ServiceProcessInstaller. These are what installutil uses to actually register each service within the process.

 
精彩推荐
图片推荐