yehia Posted December 2, 2008 Posted December 2, 2008 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? My Scripts:IE New UDFsElastic images moving under mouse (with a happy valentine's example)_FileRemoveLine
TheTex Posted December 2, 2008 Posted December 2, 2008 @startupDir I don't believe that's the registry
99ojo Posted December 2, 2008 Posted December 2, 2008 (edited) 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\Services2) you should start exe files in the regkey mentioned above3) 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 December 2, 2008 by 99ojo
skysel Posted December 2, 2008 Posted December 2, 2008 You can also do something like this: RunWait("sc start OpenVPNService", '', @SW_HIDE) sc.exe is integrated windows command.. Compile the code, put the autoit exe to Start,Programs,Startup folder.. so each time any user will logon, service will start..
yehia Posted December 2, 2008 Author Posted December 2, 2008 (edited) 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 December 2, 2008 by yehia My Scripts:IE New UDFsElastic images moving under mouse (with a happy valentine's example)_FileRemoveLine
skysel Posted December 2, 2008 Posted December 2, 2008 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")
yehia Posted December 3, 2008 Author Posted December 3, 2008 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 My Scripts:IE New UDFsElastic images moving under mouse (with a happy valentine's example)_FileRemoveLine
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now