我在使用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
更多推荐
发布评论