Windows 服务未显示在控制面板下的添加删除程序中 [英] Windows service NOT shown in add remove programs under control panel
问题描述
我通过(服务名称:Testing Service)安装了我的 Windows 服务
I installed my windows service via (name of the service: Testing Service)
InstallUtil.exe 存在于 .NET Framework 中(:WindowsMicrosoft.NETFrameWork64v4) 在 Windows 7 计算机中.
InstallUtil.exe present in .NET Framework (:WindowsMicrosoft.NETFrameWork64v4) in a windows 7 computer.
我可以在服务控制台下看到我的服务.
I can see my service under services console.
但是,我去控制面板的程序和功能中手动卸载了相同的服务,我在程序和功能下没有看到我的服务?
However, i went to programs and features of control panel to manually uninstall the same service, i didn't see my services under programs and features?
为什么不显示服务的任何想法,以便用户可以卸载它?
Any thoughts why a service will not be shown, so that, user can uninstall it?
我也检查了显示隐藏文件,但仍然没有显示服务?
I checked the show hidden files too, but still service not shown?
推荐答案
InstallUtil.exe:正如其他人所说,InstallUtil.exe 仅供开发使用,不用于最终分发服务.
InstallUtil.exe: As others have stated, InstallUtil.exe is intended for development use only, not for final distribution of your service.
MSI:以您描述的方式(在添加/删除程序中有适当的条目)部署服务的正常方法是使用使用创建的 MSI 安装程序旨在帮助您执行此操作的工具(不建议使用您自己的"工具来执行此操作).
MSI: The normal way to deploy services in the fashion you describe (with a proper entry in add/remove programs) would be to use an MSI installer created using a tool designed to help you do so (it is not advisable to "roll your own" tool to do this).
Ad-Hoc:下面对部署工具的特别描述是匆忙编写的,并且已被重新用作一般性描述这样的工具.与所问的问题不太相关,但它有点发生"了在这里.
Ad-Hoc: The ad-hoc description of deployment tools below was written in a hurry, and has sort of been re-purposed as a general description of such tools. Not too relevant for the question asked, but it sort of "happened" and here it is.
免费的 MSI 工具/查看器
如何我可以比较两个(或多个)MSI 文件的内容吗?(朝底部)-(大部分)这些不是进行设置的全功能工具,但非常适合检查 MSI 文件和创建转换.
Free MSI Tools / Viewers
How can I compare the content of two (or more) MSI files? (towards bottom) - (most of) these are not full-featured tools to make setups, but great to inspect MSI files and to create transforms.
您可以使用许多工具来创建 MSI,例如(任意顺序 - 链接到 Stefan Kruger 的 installsite.org 下面将显示更多工具,这些只是最常见的工具):
There are many tools you can use for MSI-creation, for example (arbitrary order - links to Stefan Kruger's installsite.org below will show further tools, these are just the most common ones):
免费的开源框架 - 优秀,但需要学习曲线,因此提供更多链接.
Free, open source framework - excellent, but with a learning curve, hence a few more links.
WiX 快速入门技巧
(有点混乱,奇怪的点赞,一定有帮助).- WiX 的商业分支
FireGiant
进行了 WiX 扩展打包(需要花钱). - Windows Installer 和 WiX 的创建(WiX 背后的想法是什么?).
- 如何安装和启动 Windows 服务使用WiX.
- 文档:ServiceInstall、ServiceControl.
- 未经测试:如何创建使用 WiX 的 Windows 服务 MSI 安装程序.
WiX quick-start tips
(a bit chaotic, strangely upvoted, must be helpful).- WiX's commercial branch
FireGiant
has a WiX expansion pack (which costs money). - Windows Installer and the creation of WiX (what is the idea behind WiX?).
- How to install and start a Windows Service using WiX.
- Documentation: ServiceInstall, ServiceControl.
- Untested: How to create a Windows Service MSI Installer Using WiX.
- 部署和 MSI 专家 Chris Painter 拥有自己的基于 WiX 的免费工具
IsWiX
- 它可以帮助解决 WiX 的学习曲线和管理 WiX 源文件.
- 另请参阅他的 IsWiX 教程.莉>
- Deployment and MSI expert Chris Painter has his own, free WiX-based tool called
IsWiX
- It can help with WiX's learning curve and manage WiX source files.
- Also see his IsWiX Tutorials.
- 出色的商业工具,具有多种智能功能,可帮助您快速可靠地递送包裹.
- 一些免费功能.
- 这里是通向所有人的绝佳门户高级安装程序.
- 安装服务、操作方法.
- Great commercial tool with lots of smarts to help you deliver packages quickly and reliably.
- Some free features.
- Here is a great gateway to all things Advanced Installer.
- installing services, how-to.
- 久负盛名的市场领导者工具 Installshield 具有非常丰富的功能集,能够满足高级设置要求.
- 曾经有一个 Lite 版本,它一度需要花钱.不确定现在是否可用.
- 有一个 InstallShield 限量版版本.不确定其功能集和成本(如果有的话).不适用于 Visual Studio Community 版本.
- 安装、控制和配置 Windows 服务.
- The old and established market leader tool Installshield features a very rich set of functionality capable of delivering advanced setup requirements.
- There used to be a Lite version which cost money at one point. Not sure if it is available now.
- There is an InstallShield Limited Edition version. Unsure of its feature set and cost (if any). Does not work with Visual Studio Community editions.
- Installing, Controlling, and Configuring Windows Services.
- Visual Studio 中还有 Visual Studio Installer 项目类型(VS 2017 示例).
- 我真的不推荐这样做 - 特别是如果您有高级部署或自动化要求.
- 这是非常基本的,并且有很多严重的限制.
- 安装Visual Studio 设置和部署项目模板.
自动更新?:创建自动更新包的各种方法.
以上这些工具在实际使用中是什么样的?以下是一些务实的观察和总结:
What are the above tools like in actual use? Here are some pragmatic observations and summaries:
- 如何创建 Windows 安装程序(推荐概览).
- 什么安装要使用的产品?InstallShield、WiX、Wise、Advanced Installer 等(这些主要 MSI 工具的陈旧详细比较 - 非常详细且实用").
还有许多其他工具可用于创建创建安装程序/setup.exe 文件的各种类型(不仅是 MSI 工具,还有通用、遗留工具、多平台工具等...):
There are many further tools available to create create installers / setup.exe files of various kinds (not just MSI tools, but general purpose, legacy tools, multi-platform tools, etc...):
Stefan Kruger 的综合列表:
- 非 MSI 安装程序工具: http://www.installsite.org/pages/en/tt_nonmsi.htm
- Windows 安装程序工具:http://www.installsite.org/pages/en/msi/authoring.htm
- 系统管理工具:http://www.installsite.org/pages/en/msi/admins.htm
其他链接:
跨平台安装程序: 是否存在通用的跨平台安装程序?(非 MSI 工具).
Cross-Platform Installers: Does an universal cross-platform installer exists? (non-MSI tools).
dotNetInstaller:还有 dotNetInstaller Setup Bootstrapper - 我从未使用过.
这里是 github.com(来源).
只是一个引导程序(为您按顺序运行,然后是一些),而不是这样的开发工具.我觉得这个工具有点奇怪".
Just a bootstrapper (runs things in sequence for you, and then some), not a development tool as such. I find this tool "a bit weird".
一些常规链接:还有其他各种部署方式 - 例如使用自解压 zip 档案和类似的东西.不推荐,但有一些链接:
Some General Links: And there are various other ways to deploy - for example with self-extracting zip archives and stuff like that. Not recommended, but some links:
- 创建 7-zip 安装程序包时出错(7-Zip、iExpress 和其他自解压程序创建者)
- 将 exe 和 msi 文件合并到一个安装程序中(推荐)
- Visual Studio 2017 安装程序项目 - 包括VC++ 2015 Redistributable(WiX Burn 快速入门)
- Visual Studio 安装程序项目中的其他设置
- Error Creating a 7-zip installer package (7-Zip, iExpress and other self-extractor creators)
- Combine exe and msi file in one installer (recommended)
- Visual Studio 2017 Installer Project - include VC++ 2015 Redistributable (WiX Burn Quick Start)
- Additional Setup in Visual Studio Installer Projects
这篇关于Windows 服务未显示在控制面板下的添加删除程序中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!