Windows服务设置和部署问题(Windows Service Setup & Deployment Issues)

编程入门 行业动态 更新时间:2024-10-27 04:33:54
Windows服务设置和部署问题(Windows Service Setup & Deployment Issues)

我在使用msdn网站上列出的安装和部署方法安装Windows服务时遇到问题。

这就是我做的。

我创建了一个虚拟Windows服务。 然后,我通过在设计模式下右键单击我的服务并选择添加安装程序,为该服务创建了一个projectInstaller。 之后,我在同一解决方案中创建了一个单独的安装和部署项目,并将输出添加为Windows服务项目。

当我右键单击Setup&Deployment项目并点击安装时,安装程​​序将运行安装过程并说安装已成功完成。 现在,当我出于某种原因进入管理服务窗口时,我根本看不到已安装的服务。 有没有人遇到过这个? 如果是这样,你知道我可能做错了什么以及如何纠正这个问题。

谢谢

I'm having a problem installing a windows service using the Setup & Deployment Method listed on the msdn website.

Here's what i did.

I created a dummy windows service. I then created an projectInstaller for that service by right clicking on my service in design mode and choosing add an installer. After that i created a separate Setup & Deployment project within the same solution and added output as the Windows Service Project.

When i right click on the Setup & Deployment project and hit install, the installer runs through the setup process and says the installation has completed successfully. Now when i go to the services windows in administration for some reason i don't see the Installed service listed at all. Has anyone run into this before? If so do you know what i might be doing wrong and how i can correct this.

Thanks

最满意答案

您是否定义了自定义操作? 看看这个页面: http : //support.microsoft.com/kb/317421

确保您不要忘记使用已编译的安装项目下的步骤3 来安装Windows服务

Did you define the Custom actions? Have a look at this page: http://support.microsoft.com/kb/317421

Make sure you don't forget step 3 under Use a compiled Setup project to install the Windows Service

更多推荐

本文发布于:2023-08-07 16:59:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1465498.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Service   Windows   Setup   Issues   Deployment

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!