 <p>You can specify the dependencies of your Windows Service to have it require another service. If you specify a dependency on the EventLog service, then Windows will wait until your service is shut down before shutting down the Event Log.</p> <p><a href="http://kb2.adobe.com/cps/400/kb400960.html" rel="nofollow noreferrer">http://kb2.adobe.com/cps/400/kb400960.html</a> describes how to do it by modifying a few registry keys.</p> <blockquote> <p>Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services and locate the service that you need to set a dependency for. Open the 'DependOnService' key on the right side. If the selected service does not have a 'DependOnService' key, then create one by right-clicking and selecting New > Multi-String Value. In the value field, enter the names of all services that the current service will depend on. Each service name must be entered properly and on a separate line.</p> </blockquote>