installutil不起作用 [英] installutil did not work

查看:129
本文介绍了installutil不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在这篇文章中正在测试程序,当谈到安装服务时,他们的服务没有出现在服务管理器中.
文章 http://msdn.microsoft.com/en-us/library/ms733069.aspx

当我使用installutil.exe来安装service.exe时,它说没有RunInstallerAttribute.是的,并且服务没有显示
但在程序中,我确实按如下方式添加了此代码(根据文章)

I am testing program at this article said and when it comes to install the service they service did not show up in service manager.
the article http://msdn.microsoft.com/en-us/library/ms733069.aspx

when I use installutil.exe for install service.exe , it said there is no RunInstallerAttribute.Yes and service did not show up
but in program I did added this code as below (according to the article)

[RunInstaller(true)]
public class ProjectInstaller : Installer



我正在使用Windows7和Visual Studio2010.
谁能告诉我原因?我不认为我会错过文章中提到的内容,但是为什么会发生这种情况?



I am using Windows7 and visual studio 2010.
could anyone tell me the reason? I don''t think I missed something in article said, but why dose this happen?

推荐答案

该实用程序的作者写了一篇博客文章,展示了如何创建批处理安装和安装文件启动服务;或停止&卸载.您可以访问 http://richardwilburn.wordpress.com/2010/12/01 /wcf-windows-service-deployment/ [ ^ ]
Author of this utility, wrote a blog post showing how to create batch files to install & start the service; or stop & uninstall. You can refer at http://richardwilburn.wordpress.com/2010/12/01/wcf-windows-service-deployment/[^]


这篇关于installutil不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆