为Windows服务创建安装程序 [英] To create setup for windows service

查看:210
本文介绍了为Windows服务创建安装程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经创建了一个Windows服务,并且能够使用InstallUtil部署服务,现在我想分发相同的内容,因此需要创建安装文件,以便如果没有VS命令提示符,只需单击文件即可安装服务,
不应激活它。 

I have created a windows service and able to deploy the service using InstallUtil, Now I want to distribute the same hence need to create the Setup file so that without the VS Command prompt and by just clicking the file it should Install the service and should not activate it. 

任何链接都会有所帮助。

any link will be helpful.

谢谢

推荐答案

嗨santosh,

Hi santosh,

 欢迎来到MSDN论坛支持。

  Welcome to MSDN Forum Support.

 您可以使用MSI打包Windows服务,这种方式不使用命令提示符,并将创建.msi文件。您可以阅读
演练:创建自定义操作 
演练:使用自定义操作创建数据库在安装 
。您还可以通过查看
安装Windows服务获得集成解决方案使用自定义操作

  You can use MSI to package your windows service, this way is not using the command prompt and would create a .msi file. You can read Walkthrough: Creating a Custom Action  and Walkthrough: Using a Custom Action to Create a Database at Installation  . You also get the integrated solution by taking a look at Install Windows Service using Custom Actions.

 此致,

  Jason Wang

  Jason Wang


这篇关于为Windows服务创建安装程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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