Tuesday, July 26, 2011

HOW to Install/Uninstall Windows Service

To Install a Windows Service, We can use either a .NET Command Prompt, or DOS Command Prompt.

By using .NET Command Prompt,

goto the directory where Service is located,
type installutil <servicename.exe>, to uninstall, type  installutil /u <servicename.exe>

By Using DOS Command Prompt,

If .NET is not installed in your application, then to install this windows service, must needs .net framework.

goto the directory where installutil.exe is exists.
(by default, in server machines, it is in C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727)

in DOS Command prompt, goto that path, and then type installutil C:/services/servicename.exe
(give complete path and name of service to install, same to unsintsall.)