Windows服务未显示在控制面板下的“添加删除程序”中 [英] Windows service NOT shown in add remove programs under control panel

查看:97
本文介绍了Windows服务未显示在控制面板下的“添加删除程序”中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我通过(服务名称:Testing Service)安装了Windows服务

I installed my windows service via (name of the service: Testing Service)


.NET Framework $ b中存在的InstallUtil.exe Windows 7计算机中的$ b(:\Windows\Microsoft.NET\FrameWork64\v4)。

InstallUtil.exe present in .NET Framework (:\Windows\Microsoft.NET\FrameWork64\v4) 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 :以下部署工具的临时描述为wr急于进行操作,并已重新用作
这种工具的一般说明。与提出的问题不太相关,但是有点发生了。

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 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.

IsWiX - 快速下载


  • 部署和MSI专家 Chris Paint er 有他自己的免费的基于WiX的工具,名为 IsWiX

  • 它可以帮助WiX更好地学习并管理WiX源文件。

  • 另请参阅他的 IsWiX教程
  • li>
  • 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具有非常丰富的功能集,能够满足高级设置要求。

  • 有一个 Installshield Lite 版本。不确定其功能集。花费金钱。

  • 服务常见问题解答

  • The old and established market leader tool Installshield features a very rich set of functionality capable of delivering advanced setup requirements.
  • There is an Installshield Lite version. Unsure of its feature set. Costs money.
  • Service FAQ.
  • Maybe search for "services" here - page 50.
  • There is also the Visual Studio Installer project type in Visual Studio (VS 2017 sample).
  • I would not really recommend this - especially if you have advanced deployment or automation requirements.
  • It is very basic, and there are many severe limitations.

以上工具在实际使用中是什么样的?以下是一些实用的观察和总结:

What are the above tools like in actual use? Here are some pragmatic observations and summaries:

  • How to create windows installer (recommended overview).
  • What installation product to use? InstallShield, WiX, Wise, Advanced Installer, etc (an aging, detailed comparison of these major MSI tools - very detailed and "pragmatic").

还有许多其他工具可用于创建创建各种安装程序/ 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的完整列表:

Stefan Kruger's Comprehensive Lists:

  • Non-MSI installer tools: http://www.installsite.org/pages/en/tt_nonmsi.htm
  • Windows installer tools: http://www.installsite.org/pages/en/msi/authoring.htm
  • Sys-admin tools: http://www.installsite.org/pages/en/msi/admins.htm

其他链接

Other Links:

  • Cross-Platform Installers: Does an universal cross-platform installer exists? (non-MSI tools).

dotNetInstaller :也有 dotNetInstaller安装引导程序-我从未使用过。


  • 此处为github.com (源)

  • 只是一个引导程序(先为您依次运行,然后再运行一些),而不是这样的开发工具。我觉得这个工具有点奇怪。

  • Here it is on github.com (source).
  • 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:

  • 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屋!

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