Windows service NOT shown in add remove programs u

2018-12-31 09:44发布

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

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?

4条回答
墨雨无痕
2楼-- · 2018-12-31 10:13

There is a Microsoft Visual Studio 2017 Installer available via Tools->Extensions and Updates

This official Microsoft Extension provides support for Visual Studio Installer Projects in VS2017

查看更多
大哥的爱人
3楼-- · 2018-12-31 10:17

InstallUtil.exe: As others have stated, InstallUtil.exe is intended for development use only, not for final distribution of your service.

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


UPDATE:

Free MSI Tools: 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.


Deployment Tool: There are many tools you can use, for example (arbitrary order):


Links: Some links on the topic of MSI creation:

Some General Links:

查看更多
一个人的天荒地老
4楼-- · 2018-12-31 10:17

InstallUtil only performs actions exposed by your .Net Installer classes, such as registering a service.

It does not perform the "standard" application installation which results in the entries being added into add/remove programs.

To do this, you will need to look at various install builders such as Wix, Installshield, etc.

查看更多
泛滥B
5楼-- · 2018-12-31 10:17

Installutil.exe (Installer Tool)

The Installer tool is a command-line utility that allows you to install and uninstall server resources by executing the installer components in specified assemblies.

Its job in life is to do exactly that,

To fill in your knowledge you should read through this

Chapter 2. Install/Uninstall

You will notice this is an entirely different concept, and actually has all the information you need (albeit in a very verbose manner)

There are various ways to achieve what you are after, one of them is using out of the box installation software, MSI, click once, or many others. or you could roll your own by using the above resources

查看更多
登录 后发表回答