How to disable event log source creation in a project Installer

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
<p align=left><font face=Arial size=2>Ive added a project installer to my windows service however it fails installation when I run installutil on it because the source event log already exists. How do I tell my installer to not attempt to create an event log source?</font>
<p align=left> 
<p align=left>Renaming the service name as mentioned on other sites is not an option, and deleting the event source prior to installation is not an option either. I simply want the installer to not attempt to create an event source or at least do an if exists test before trying.
<p align=left>  <font color="#ff0000 System.ArgumentException: Source MyService1 already exists on the local computer.</font>

View the full article
 
Back
Top