Modifying the "Path to executable" of a windows service

GenericJon picture GenericJon · Aug 25, 2011 · Viewed 261k times · Source

I'd like to modify the path to my application, but doing so breaks it because the service still points to the old location.

By going to Administrative Tools > Services you can open a properties dialog and view the Path to executable, but there is no way to change it.

Is there any way a user can modify the service path without having to reinstall the application ?

Answer

Matt McHugh picture Matt McHugh · Aug 25, 2011

It involves editing the registry, but service information can be found in HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services. Find the service you want to redirect, locate the ImagePath subkey and change that value.