title: How to create a .NET event log source using WiX
body: <p>This is an intentional semi-duplicate of <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> and <a href="https://stackoverflow.com/questions/3590015/wix-create-eventsource-using-net-message-file">WIX: Create EventSource using .NET message file</a>.</p>
  
  <p>My first question is, does it really have to be so complicated? Isn't there some way to simply specify to WiX, "my program is a .Net program, and it needs to write to the event log - please do the necessary setup"? </p>
  
  <p>OK, assuming that isn't possible, I'd like to receive any recommendations for the necessary WiX statements to make it work, irrespective of which version of .Net Framework is installed, and irrespective of whether it is a 32 or 64-bit system. After all, most of my .Net programs are able to run on .Net 2.0 or later, and on either 32 or 64-bit, so it shouldn't matter. </p>
  
  <p>Final question: Is there any way to make it future-proof? It would be nice if the MSI files I generate today will still work in five years, even if .Net CLR 2.0 and 4.0 have both been relegated to the dustbin in Windows 11 or whatever it's called then. </p>