Jump to content

can we make a windows service start at the startup


yehia
 Share

Recommended Posts

is there any way or function to make a windows service start at the startup without adding it to the registry "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" key?

yes and no, like radio eriwan mentioned.

1) you should start real services in HKLM\SYSTEM\CurrentControlSet\Services

2) you should start exe files in the regkey mentioned above

3) you can use Srvany.exe to start normal exe file as service to have normal services access, as start, stop .....

4) you can start an exe file by creating a sheduled task, which runs at system startup. see schtasks /?

I think this are the only possibilities. ;-((

;-))

Stefan

Edited by 99ojo
Link to comment
Share on other sites

im sure there is another way, but how ...

btw u said "1) you should start real services in HKLM\SYSTEM\CurrentControlSet\Services"

so the service will auto start up with the windows start up? (same as spooler)

if thats correct tell meh how

Edited by yehia
Link to comment
Share on other sites

Navigate to HKLM\SYSTEM\CurrentControlSet\Services\YourService, change the binary value "Start" to 2 (in hexadecimal view)...

or in AutoIt:

RegWrite("HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\YourService", "Start", "REG_DWORD", "0x00000002")
thanks alot thats really what i wanned to know
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...