
By default, you cannot directly change the path to executable in the Windows service program. Please follow below steps if you want to change it to a new entry. No Windows restart required but you may need to start and stop the service – to activate the changes!

2 methods of implementing this activity – You can use any method you liked!
Method 1
Using Registry Editor (type “regedit” to open it from Windows search function). Browse to the following directories,
HKEY_LOCAL_MACHINE > SYSTEM > CurrentControlSet
> Services > THE-SERVICE-NAME-YOU-WANT-TO-CHANGE

On the right panel, double click ImagePath. You can change the new path to executable on the Value data field. Once done, click OK.

Method 2
Open the command prompt and enter the following line,
SC CONFIG YOUR-SERVICE-NAME binPath= "THE-PATH-EXECUTABLE"
Example,
C:\>SC CONFIG SAPSID_00 binPath= "C:\usr\sap\SID\DVEBMGS00\exesapstartsrv.exe" [SC] ChangeServiceConfig SUCCESS


Thanks!. Working on starting Apache on my local machine, but had to change the originally-given directory name to that which coincided with the config file. after adding modifying the key in regedit, the service started with no issues, and the test page displayed on my browers. You all rock