If you stop the service, replace the executable file and restart the service, it will use the new executable file.
However, you need to make sure that the executable you are replacing is the one that is actually registered on the system.
source share