I use something like this:

                  <!-- Create the Event Log -->
                  <util:EventSource Name='My Service EventLog' Log='My Service 
Eventlog '
                    
EventMessageFile='[NETFRAMEWORK40FULLINSTALLROOTDIR]\EventLogMessages.dll'
                    SupportsErrors='yes'
                    SupportsWarnings='yes'
                    SupportsInformationals='yes'/>



.Net 2.0 also has the same DLL.



If you have a custom Eventlog dll, created using the mc compiler, you could 
substitute that dll here, it would have to be compiled with the native C/C++ 
compiler though.



John



-----Original Message-----
From: Christopher Painter [mailto:[email protected]]
Sent: Wednesday, March 28, 2012 7:57 PM
To: General discussion for Windows Installer XML toolset.; 
[email protected]
Subject: Re: [WiX-users] Windows service event source



Take a look at:





http://wix.sourceforge.net/manual-wix3/util_xsd_eventsource.htm





An event source in windows is really just some registry entries.  The 
EventSource extension is some compiler synatical sugar that simlifies

authoring this.   Your Installer class isn't needed and shouldn't be used

as it increases the fragility of your MSI.



----------------------------------------



From: "Chris Robison" <[email protected]<mailto:[email protected]>>



Sent: Wednesday, March 28, 2012 6:00 PM



To: [email protected]<mailto:[email protected]>



Subject: [WiX-users] Windows service event source





I'm using the latest weekly build of Wix. The ServiceInstall feature



doesn't create a properly named event source for the service. The event



source for a service turns out to be Service1. The service installer built



into .NET does it. Can anyone point me in the right direction?





Thanks,



Chris



----------------------------------------------------------------------------

--



This SF email is sponsosred by:



Try Windows Azure free for 90 days Click Here



http://p.sf.net/sfu/sfd2d-msazure



_______________________________________________



WiX-users mailing list



[email protected]<mailto:[email protected]>



https://lists.sourceforge.net/lists/listinfo/wix-users





------------------------------------------------------------------------------

This SF email is sponsosred by:

Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure 
_______________________________________________

WiX-users mailing list

[email protected]<mailto:[email protected]>

https://lists.sourceforge.net/lists/listinfo/wix-users
------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to