Link to home
Start Free TrialLog in
Avatar of gautam_reddyc
gautam_reddyc

asked on

How to install Windows Service in C#??

i have a windows service... i need to install it... Can anyone tell me the process to install it..

i read in some articles that we should install it with InstallUtil.exe..
can anyone tell me the procedure to install it.. Thank You...
Avatar of lenordiste
lenordiste
Flag of France image

InstallUtil is one way to do it. Depending on your .NET framework version you ll have to adjust the path and execute something like this:
C:\Windows\Microsoft.NET\Framework\v2.0.50727\InstallUtil.exe nameOfMyService.exe

to uninstall just add /u as a parameter.

Make sure that in your project you added an installer for your service. I would look at this great ressource from MS which also describes other ways to install your service (which in the end just calls installutil but is more "dev friendly"): http://msdn.microsoft.com/en-us/library/zt39148a.aspx

ASKER CERTIFIED SOLUTION
Avatar of angus_young_acdc
angus_young_acdc
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of gautam_reddyc
gautam_reddyc

ASKER

good