问题描述
我通过(服务名称:Testing Service)安装了Windows服务
I installed my windows service via (name of the service: Testing Service)
我可以在服务控制台下查看我的服务。
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?
我也检查了显示隐藏文件,但仍未显示服务吗?
I checked the show hidden files too, but still service not shown?
推荐答案
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).
免费的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的将显示更多工具,这些只是最常用的工具):
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背后的想法是什么?)。
- 。
- 文档:,。
- 未经测试:。
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专家有他自己的免费的基于WiX的工具,名为
- 它可以帮助WiX更好地学习并管理WiX源文件。
- 另请参阅他的。 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具有非常丰富的功能集,能够满足高级设置要求。
- 有一个版本。不确定其功能集。花费金钱。
- 。
- 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:
- ( 推荐概述 )。
- (这些主要MSI工具的老化,详细比较-非常详细和实用)。
- 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:
- 非MSI安装程序工具: :
- Windows安装程序工具 :
- 系统管理工具 :
- 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:
-
跨平台安装程序: (非MSI工具)。
Cross-Platform Installers: Does an universal cross-platform installer exists? (non-MSI tools).
dotNetInstaller :也有-我从未使用过。
- (源)
- 只是一个引导程序(先为您依次运行,然后再运行一些),而不是这样的开发工具。我觉得这个工具有点奇怪。
- 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:
- (7-Zip,iExpress和其他自解压程序的创建者)
- (WiX Burn快速入门)
- 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服务未显示在控制面板下的“添加删除程序”中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!