O'Reilly logo

WiX: A Developer's Guide to Windows Installer XML by Nick Ramirez

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Service recovery with Util:ServiceConfig

Windows allows you to set actions to be taken if your service fails at some point while it's running. Your three options are: try to restart the service, run an executable file or script, or reboot the machine. You can see these settings in the services management console by viewing the Properties of your service and clicking the Recovery tab.

Service recovery with Util:ServiceConfig

First, let's alter the original Windows service that we created by changing the WriteToLog function so that it throws an error the third time it prints a message. As this error is uncaught, it will cause the service to stop running. This will give the failure recovery ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required