The problem I ran into when the installer didn't create the event source was a 
permission one.  If your service has the adequate permissions, the service 
class can create the eventlog, however, most of my services run at a 
considerable lower privilege, and so I have to rely on the installer to create 
it.

John

-----Original Message-----
From: Chris Robison [mailto:chrisdrobi...@gmail.com] 
Sent: Thursday, March 29, 2012 10:56 AM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Windows service event source

You know what, I figured it out. That source doesn't have to do with installer 
at all. I just had to set the service name in code in the ServiceBase class for 
it to display correctly.

Chris

On Thu, Mar 29, 2012 at 9:30 AM, Chris Robison <chrisdrobi...@gmail.com>wrote:

> So I have that in there, but the event items still show up as Service1 
> in the event log.
>
>
> On Wed, Mar 28, 2012 at 7:58 PM, John H Bergman (XPedient) < 
> john.berg...@xpdnt.com> wrote:
>
>> 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:chr...@iswix.com]
>> Sent: Wednesday, March 28, 2012 7:57 PM
>> To: General discussion for Windows Installer XML toolset.; 
>> wix-users@lists.sourceforge.net
>> 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" <chrisdrobi...@gmail.com<mailto:
>> chrisdrobi...@gmail.com>>
>>
>>
>>
>> Sent: Wednesday, March 28, 2012 6:00 PM
>>
>>
>>
>> To: wix-users@lists.sourceforge.net<mailto:
>> wix-users@lists.sourceforge.net>
>>
>>
>>
>> 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
>>
>>
>>
>> WiX-users@lists.sourceforge.net<mailto:wix-us...@lists.sourceforge.ne
>> t>
>>
>>
>>
>> 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
>>
>> WiX-users@lists.sourceforge.net<mailto:wix-us...@lists.sourceforge.ne
>> t>
>>
>> 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
>> WiX-users@lists.sourceforge.net
>> 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
WiX-users@lists.sourceforge.net
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
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to