问题描述
我已经创建了一个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.
谢谢
推荐答案
欢迎来到MSDN论坛支持。
Welcome to MSDN Forum Support.
您可以使用MSI打包Windows服务,这种方式不使用命令提示符,并将创建.msi文件。您可以阅读
和。您还可以通过查看。
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 readWalkthrough: 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服务创建安装程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!