Currently I have to uninstall the old version of my service before I install the new version. I am pretty sure this has something to do with it not being smart enough to update or remove the old service entries before adding the new ones.
Is there a way to have the installer skip registering the service if it already exists? (I can assume the installation folder and service name do not change between versions.)
Also, is there a way to automatically stop the service when uninstalling?
Edit:
I am using MSI packages and the Visual Studio setup project.
See Question&Answers more detail:os