65.9K
CodeProject is changing. Read more.
Home

How to change Windows Service Location

starIconstarIconstarIcon
emptyStarIcon
starIcon
emptyStarIcon

3.50/5 (2 votes)

Jun 27, 2011

CPOL
viewsIcon

23550

Few days back I was working on a windows service and deployed it on my development machine due to some reason I changed the executable file path of the service, but to run the service I need to reinstall the service because the installed service was pointing to old location and there was no GUI option on service from which I can change the location of service. here is the trick to change the location of service without reinstalling it. just type regedit on Run, Then go to following path * HKEY_LOCAL_MACHINE * SYSTEM * CurrentControlSet * Services * Service_Name --- imagePath, just change the value of Image Path to new location. Hope this helps