如何通过安装文件运行Windows服务 [英] how to run windows service through setup file

查看:100
本文介绍了如何通过安装文件运行Windows服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好



完成后我有windows服务我在我的系统中使用

visual studio命令提示符进行托管: InstallUtil命令

它工作正常。



如果我想安装没有visual studio命令提示我该如何安装?



当我运行安装程序时,它已安装,但是当点击此图标时出错:



无法从命令行或调试器启动服务。首先必须安装Windows服务(使用installutil.exe),然后使用ServerExplorer,Windows服务管理工具或NET START命令启动。



如何追踪这个?



提前谢谢.......

hi all

I have windows service after completed I hosted this in my system using
visual studio command prompt :InstallUtil command
it is working fine.

If I want to instal without visual studio command prompt how can I install?

When I run through setup it is installed but when click this Icon giving error:

Cannot start service from the command line or a debugger. A Windows Service must first be installed (using installutil.exe) and then started with the ServerExplorer, Windows Services Administrative tool or the NET START command.

How can trabulshoot this?

Thanks in advance.......

推荐答案



一种方法是在批处理文件中编写脚本,并在安装过程中使用安装程序运行批处理文件。



问候

Jegan
Hi,
One way to do is to write the script in batch file, and use the installer to run the batch file during the installation.

Regards
Jegan


大家好终于解决了这个



hi all finally solved this

right click on setup project=>select view=>CustomActions=>add every folder to project output.


这篇关于如何通过安装文件运行Windows服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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