when i was in client place I got a problem
I need to install a windows service using installutil.exe but there is no visual studio command prompt tool.
sc create ServiceName binPath= “c:\windowservice1\windowservice1.exe”
here ServiceName is userdefined name it can be anything
When creating the service there is a space between the = and ”
ie after binPath= provide a space
Deleting a windows service from command prompt
sc delete ServiceName
Install window service without using installutil
Article is about to install window service without using InstallUtil utility.
Windows XP or Later has command line utility called sc . (This utility talks with service controller and with services from command line).
SC is a window base utility. AS explain in article http://dotnetstep.blogspot.com/2009/06/install-windowservice-using-installutil.html sc does not required ProjectInstaller.
1. Start service using sc
sc start ServiceName
2. Stop serivce
sc stop ServiceName
3. Delete window service
sc delete servicename
Note : During delete call if service is in running state then service is delete when nexttime service is stop or PC restart.
4. Create window service
sc create ServiceName binpath= “c:\windowservice1\windowservice1.exe”
Apart from above many option available . For that just go to command prompt and type sc create /?
For example configure service running account.
sc create servicename binpath= “c:\windowservice1\windowservice1.exe” obj= administratorpassword= pass
watching files in folder console application c#
How to Open Windows Task Scheduler (control panel->administrative tools->task schedulter in windows7)
debug windows service c# visual studio 2008
from vs command prompt
C:\Windows\system32>installutil -u E:\Projects\HimalayaPhase2\Phase2\AutoRecManP