Hello, For a .NET application I would like to create an event log source in the setup process. Until moving to WiX, this was done via an InstallUtil-type Installer class, but, for obvious reasons, I'm moving away from this now. I have been looking at various sources of documentation and what I've found is this:
<util:EventSource Name='MyApplication' Log='Application' EventMessageFile='C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\EventLogMessages.dll' SupportsErrors='yes' SupportsWarnings='yes' SupportsInformationals='yes' /> Now, as for the EventMessageFile, this should be the .NET EventLogMessages.dll for the target framework version, but I would rather not hard code the full path to this file. Does anyone have any suggestions on how this could be done best? I'm thinking of a registry search for InstallRoot in HKLM\Software\Microsoft\.NETFramework and then somehow append the version number, but perhaps anyone has a better way? Also, this may have been asked before, but the NetFxExtension exposes various properties of the .NET Framework, including the SDK directory, but it does not provide a property for the runtime directory (C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727). Is this omitted for any specific reason or is it planned for a future version? Kind regards. ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users