Click here to Skip to main content
15,905,682 members
Articles / Operating Systems / Windows
Tip/Trick

How to change Windows Service Location

Rate me:
Please Sign up or sign in to vote.
3.50/5 (2 votes)
27 Jun 2011CPOL 23.4K   2  
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

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Technical Writer
United States United States
<Profile>
<Profession>
I am a Software Engineer from Karachi Pakistan, Being a programmer obviously I love to code but I love to code that adds something new in my knowledge else I do copy paste usually Smile | :)
</Profession>
<Education>
Have done Master and Bachelors of Computer Science from Karachi University Pakistan
</Education>
<Interests>
Anything I found interesting technically or non-technically so nothing specific Wink | ;)
</Interests>
</Profile>

Comments and Discussions

 
-- There are no messages in this forum --