Install And Uninstall Windows Service From Command Prompt

less than 1 minute read

Suppose you have created a windows service name “YourServiceName.exe”. Now you want to install or uninstall it from command prompt.

To Install Service run the following commnad

C:\Windown\Microsoft.Net\framework\v2.0\installUtil.exe  C:\dirctory\YourServeceName.exe

To Uninstall Service run the following command

C:\Windown\Microsoft.Net\v2.0\installUtil.exe /u C:\dirctory\YourServeceName.exe 

Note: Here, “C:\dirctory\YourServeceName.exe” means location of your service.