Search code examples
c#windows-services

Windows Service not updating when code changes


Hi i'm new in Windows Service c#. i followed tutorials and it works perfectly after installation.

Now my problem is when i modify the fonctionnality of the service (modifying c# code), and i uninstall & install the windows service, the functionnality remains that of the first installation.

I even restarted the PC and the functionnality and the functionality has not changed

Is there someone who had this problem?


Solution

  • I also had the same problem.If you are using visual studio installer, just delete the .msi and setup.exe from "XXX\Release" folder and rebuild visual studio installer project. It will recreate both files with updated code changes.