0
votes

I am trying to update a windows service coded in C#. In the installer, I've made sure to: - DetectNewerInstalledVersion : true - RemovePreviousVersions: true - Updated version in both the installer and the assembly file of the service itself.

I stop my running service before trying to reinstall it. Nonetheless, when I run the installer (or using the default installutil), it says "Error 1001. The specified service already exists." <-- Shouldn't it update it then (as specified in the install settings)?

** THE GOAL IS TO AVOID HAVING TO MANUALLY UNINSTALL THE SERVICE EACH TIME I MAKE A CHANGE TO ITS CODE **

Any help will be much appreciated!

1
This is the best answer so far. - gyslinn

1 Answers

0
votes

Using the native service installer is crap. to uninstall you need the original files in the original location.

Try nssm. https://nssm.cc/