Home XP Regestry Tweaks XP Tutorials XP Services Vista Tweaks Vista Services My Other Sites Contact Me
 
 

Run a program as service yesterday I asked about how to run a program as service , someone said I can't do this , and there was no new answer . I knew services are in Registry Editor , so I went to Registry Editor And found ervices after 30 minutes

1. open run commander , write "regedit" and press enter
2. browse here : HKEY_LOCAL_MACHINE -> SYSTEM -> ControlSet001 -> Services
3. Right Click on Services , in the list goto : New -> Key
4. Create Name for the service you are trying to make
5. In the folder , create new string value . right click on the right space and goto : New -> String Value . Name This Value "DisplayName" , right click on it and click "Modify" In The list . In Value Data , write The service name . this name will be show in Services in Administrative Tools
6. create new string value Again , Name it "ObjectName" . modify it's value to "LocalSystem"
7. create an Expandable String Value , it's available on : Right Click -> New -> Expandable String Value . Name It "ImagePath" , set it's value to program destination . like this : "C:\Program Files\Program Company\Program Name\bin\program.exe"
8. create new DWORD value , name it "Start" , it's value is : 2
9. create new DWORD value and name it "Type" , value should be 16 , 0*00000010(16)
10. create new key in service key , name it "Enum"
11. add this values in Enum key :
String Value , name : "0" , Data : "Root:\LEGACY_servicename"
DWORD Value , name : "Count" , value : 1
DWORD Value , name : "NextInstance" , value : 1

it's complete , just a note , if you want to see the task on Task Manager , Add "\0000" in "0" string value at Enum key after servicename

 

go back