VS2013 Windows服务-如何制作安装程序? [英] VS2013 Windows Service - How to make installer?

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

问题描述

我已经编写了Windows服务.

I have written a Windows Service.

我现在想将其打包在安装程序中.

I now want to package it up in an installer.

我使用了VS2013 x86本机工具命令提示符,然后使用了以下命令:

I have used the VS2013 x86 Native Tools Command Prompt and then used the commands:

要安装它:

installutil httpapiservice.exe

要卸载它:

installutil httpapiservice.exe /u

这很好用.我可以在服务"中看到新服务,然后停止并启动它.

This works perfectly. I can see the new service in "Services" and stop and start it no problem.

然后我继续右键单击该项目,然后选择发布",它生成了setup.exe

I then proceeded to right click on the project and select "Publish" and it produced a setup.exe

但是,当我运行setup.exe时,我可以看到它正在下载并提取"文件.看起来好像正在安装,但服务"中什么也没有出现

But, when I run the setup.exe I can see it "downloading and extracting" the files. It looks like it's installing but nothing appears in "Services"

有人可以告诉我我做得对吗?

Can anyone tell me if I am doing it correctly please?

谢谢

推荐答案

我最终压缩了软件并添加了installutil.exe,并简单地向客户提供了必须安装和卸载的说明.

I ended up zipping up the software and including installutil.exe and simply gave the customer instructions have to install and uninstall.

似乎工作得很好.

HTH

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

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