Develop your own Windows Service

Writing a Windows Service is very easy. Deploying it with a Setup is an easy task as well.

But be careful what option you set for the failure behavior!

In my case I installed the service with “Windows Installer XML (WiX) toolset”.


Do not use critical as ErrorControl value. It will force a reboot of the server, if the services fails to start.


Fortunately booting with “Last known good configuration” worked for me and I could uninstall the service…