开发者

Windows service deploying problem

I've created a very simple Windows Service projects with this tutorial. I've build the project, created setup project to deploy it and configured it according to the tutorial information. I've build setup project and installed it. In the target dir I can find it's files so it installed correctly. The service doesn't do anything specific, it just writes a message to event log on startup and shutdown.

The problem is that I cannot see my app on Windows services list (in Computer/Manage dialog) so I cannot control it.

Does anyone hav开发者_如何学Ce any ideas what I may be doing wrong? My OS is Win7 64bit if thats helpful.


Have you tried to install it using the installutil.exe utility (under a admin console session)?

installutil Service.exe

Besides, you need to add an installer component to your windows service before install it using the installutil or the default windows setup project.

Windows services requires more steps in order to be installed, so you will need to run the custom installer actions to register it at the operating system.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜