部署问题 [英] Problem with deployment

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

问题描述

大家好!

我已经在.Net 3.5中编写了Windows服务,在开发环境中,我曾使用Visual Studio命令提示符注册并安装该服务
Installutil/i路径"

但是在测试机中如何注册服务,因为我们没有Visual Studio命令提示符,而只有.net Framework 3.5.

请指教...

问候,
Vikas Mishra

Hi Guys!

I have written a windows service in .Net 3.5,in development environment i used to register and install the service with visual studio command prompt
Installutil /i "Path"

but in test machine how to register the service as we do not have visual studio command prompt ,we just have .net framework 3.5.

Please advise...

Regards,
Vikas Mishra

推荐答案

Windows服务是特殊的,因为它们由服务控制器托管,并且需要以特殊的方式进行安装.您需要以特殊方式开发Windows Service应用程序以使其可安装.如果这样做,则可以使其成为自安装的应用程序,也可以使用安装实用程序.

请参见此MSDN随便可见页面:
http://msdn.microsoft.com/en-us/library/zt39148a%28v = vs.100%29.aspx [ ^ ].

使用安装实用程序时:
http://msdn.microsoft.com/en-us/library/sd8zc8ha%28v = vs.100%29.aspx [ ^ ].

—SA
Windows Services are special, because they are hosted by the Service Controller and need to be installed in a special way. You need to develop your Windows Service application in a special way to make it installable. If you do it, you can make it a self-installed application or use an install utility.

Please see this walk-throw MSDN page:
http://msdn.microsoft.com/en-us/library/zt39148a%28v=vs.100%29.aspx[^].

On using install utility:
http://msdn.microsoft.com/en-us/library/sd8zc8ha%28v=vs.100%29.aspx[^].

—SA


这篇关于部署问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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