Create EventLog source in WiX without event message file

I saw several questions here and there about creating event log sources using WiX. Which puzzles me, therefore requires util:EventSource/@EventMessageFile . This annoys the need to specify it when you do not need a message file to record event log entries, and the abstraction offered by the .NET System.Diagnostics.Trace does not provide the possibility of using it.

The standard tip seems to be to use a directory search to set the Framework attribute EventLogMessages.dll , but no one repeating this mantra will ever give any reason for this.

If you are not using (verified, reliable) user actions that come with WiX, is there a way around this requirement?

And why do authors of managed applications that do not use this aspect of the event log resort to the (apparently) pointless reference to the DLL Framework, and not to one of their own executable files?

+8
wix event-log wix3
source share
1 answer

An MSDN event message file is required: http://msdn.microsoft.com/en-us/library/aa363680%28v=VS.85%29.aspx ..NET delivers one automatically - and yes, it's EventLogMessages.dll - when you use the Trace class (or the EventLog that uses Trace).

Be sure to write down the feature request to automatically populate WiX in EventLogMessages.dll.

+9
source share

All Articles