Reputation: 10296
I have an .exe written in .net (VB.net) 2.0. I install it as a service using instalutil.exe.
My question is, do I need to fully uninstall the service and re-install it everytime I make an update to the exe?
I tried stopping the service and replacing the exe, but it does not seem to reflect the changes made.
Upvotes: 5
Views: 3140
Reputation: 1192
You could change the configuration programmatically, via the ChangeServiceConfig API. I've done it, it works. http://msdn.microsoft.com/en-us/library/ms681987%28v=vs.85%29.aspx
Upvotes: 2
Reputation: 2845
This happens to me before, I uninstall the previous one to make the new one work, so i think you really should.
Upvotes: 1
Reputation: 564861
If you stop the service, replace the executable, and restart the service, it will use the new executable.
However, you need to make sure that the executable you're replacing is the one that's actually registered with the system.
Upvotes: 3