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?
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
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:
Deployment Tool: There are many tools you can use, for example (arbitrary order):
quick download
- (free, open source framework - excellent, but with a learning curve, hence a few more links). WiX's commercial branch FireGiant has a WiX expansion pack (which costs money).quick download
- (installing services, how-to).Some free features
Here is a great gateway
to all things Advanced Installerquick download
- (service FAQ)quick download
- (maybe search for "services" here - page 50)Links: Some links on the topic of MSI creation:
Some General Links:
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.
Installutil.exe (Installer Tool)
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