title: Wix and Eventlog
body: <p>I have seen <a href="https://stackoverflow.com/questions/58538/how-do-you-create-an-event-log-source-using-wix">How do you create an event log source using WiX</a>. My question is what is the common use (scenario) of specifying Event Source in Wix? I was thinking that specifying the source would list your application's install/uninstall process under that source in the event log so it would be easy to filter/check but even after doing that the source shows up as MsiInstaller for me. What am I doing wrong or am I misunderstanding the use of <code>util:EventSource</code>?</p>
  
  <p>Here is my code :</p>
  
  <pre><code>          &lt;Component Id="EventLogSettings" Guid="A456420B-21E7-4306-904E-5CD3822193F0"&gt;
              &lt;util:EventSource Log="Application" Name="WixSample" SupportsErrors ="yes" SupportsInformationals ="yes" SupportsWarnings ="yes" EventMessageFile="%SystemRoot%\Microsoft.NET\Framework\v2.0.50727\EventLogMessages.dll" KeyPath="yes"/&gt;
              &lt;!--&lt;?if $(var.Platform) = x64 ?&gt;
              &lt;util:EventSource Log="Application" Name="WixSample" EventMessageFile="[NETFRAMEWORK20INSTALLROOTDIR64]EventLogMessages.dll" KeyPath="yes" /&gt;
              &lt;?else ?&gt;
              &lt;util:EventSource Log="Application" Name="WixSample" EventMessageFile="[NETFRAMEWORK20INSTALLROOTDIR]EventLogMessages.dll" KeyPath="yes" /&gt;
              &lt;?endif ?&gt;--&gt;
            &lt;/Component&gt;
  </code></pre>
  
  <p>As you can see I tried two options. Each of them creates a registry entry in the Computer\HKLM\SYSTEM\CurrentControlSet\services\eventlog\Application\WixSample but I am not sure if I need to reference the WixNetFxExtension. If I do then what about installation of non .net application? What do I do in those cases?</p>