Click here to Skip to main content
15,889,034 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have developed the window service. in this i want to start the service only when starting the computer. user can not start/stop/restart the service.manually these all thing are handle when user start the computer.

or
lock the all properties from the user.all working done by coding when we start the computer.
Posted
Updated 2-Jun-11 1:51am
v3

 
Share this answer
 
There is a lot of discussion on this here[^]. It should help you setup automatic service startup.
 
Share this answer
 
Comments
vrushali katkade 2-Jun-11 7:03am    
i no how to start the service i want to disabled the option of the service start & stop after all work finished
First you have to install the service.. Check above link provided by AbhiNav.

Then go to Manage(Right click my computer-->Manage)

select services

find your service

open properties for selected service

set startup Type AUTOMATIC

start the service...

nexttime service will start automatically...
 
Share this answer
 
Comments
vrushali katkade 2-Jun-11 6:53am    
i no how to start the service i want to disabled the option of the service start & stop after all work finished
nitin bhoyate 5-Jun-11 23:12pm    
This will depend on what operating system you are using.
I think In windows XP you can achieve this from GROUPPOLICY setting(Type gpedit.msc in RUN).
Here you can enable or disble the perticular component/feature of windows OS. Google and find how to deny access to windows services

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900