0

I wrote a test Windows service and installed it using installutil which went fine.

After that I made changes in my code and tried to install again but got error. Do I need to remove the service first, then install again using installutil? Or is there other way?

Frank Martin
  • 3,147
  • 16
  • 52
  • 73

1 Answers1

2

If the name of executable is the same then you can simply stop the Windows service, copy new files on top of the old ones and start the service.

dotnetom
  • 24,551
  • 9
  • 51
  • 54
  • My problem is that the windows service won't stop properly, it keeps getting an error message: The service cannot accept control messages at this time. – Sizons Jun 07 '16 at 10:36