Install a c# windows service
How to install a c# windows service onto a machine that doesn't have Visual Studio installed?
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Pradeep ShetRank #595 · 4K reputationPosted Sep 22, 2014, 3:10 AM EDT
It is simple, you only need framework installed. Visual Studio is not required..
If suppose it is framework 4.0 then
1)Open cmd prompt
2) move to below directory
cd C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319
3) Then use installutil -i "windows service exe path"
4) Thats it
C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319>installutil -i "c:\ABC.exe"
To uninstall the service,
C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319>installutil -u "ServiceName"
To Delete service
C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319>sc delete "servicename"
Note : Service name is you name of service which you can get it from services
Run> type services.msc
Hope this helps you. Mark it answered if so.