In this article, you can learn how to Install and Uninstall Windows Service using InstallUtil.exe utility. InstallUtil.exe is the command-line utility which is available in .NET framework installation folder.
Install and Uninstall Windows Service using InstallUtil.exe:
The windows service applications which are created using .NET Framework, uses the command line utility InstallUtil.exe to install and uninstall the services. This tool is usually available in under Microsoft .NET framework installation path. The version number can be vary.
Install Windows services PowerShell:
To install .NET service, you need to run the below command by using PowerShell by specifying the full path of the .NET service application.
UnInstall Windows services using PowerShell:
To Uninstall .NET service you need to run the below command by using PowerShell by specifying the service name only.
Please note that, the service entry might be still present in the registry even after uninstalling the service using PowerShell command. In this case, you need to run the sc.exe delete to remove the entry from the registry.
Note: The v4.0.30319 is the framework version.
– Article ends here –