I have written a Windows Service which writes to a custom event log. When I install the service for some reason it automatically adds my app as a source to the "Application" event log in the registry. When I start my app I immediately delete the source and re-create it under my custom log. Unfortunately I have to reboot the computer for the change of source to take effect.
My question is, why does the installation of a service automatically add the source to the application Event log Is there a way to suppress this step Is there a way to instruct the setup package to register the source to the correct log
If only the setup process would not add the source to the application log, then I would not have to worry about running my app once and then rebooting the machine.
Thank You,
Don
.NET Development6
|