By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,726 Members | 1,154 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,726 IT Pros & Developers. It's quick & easy.

More Custom install action does not register event log sources

P: n/a
Actually, my installer package is not for a Windows Service, but for a
WinForms application.
Well, it is kind of both: this is a multi-project solution with its main
target being a WinForms application, but it also includes a Windows Service.

My custom install actions configuration includes output from a Class Library
project that contains the custom actions followed by the output of the
Windows Service project to register the service.
The custom install actions DLL creates the custom event log and registers
several sources, one of them being the source used by the Windows service.

After the install has completed I go to
HKLM\System\CurrentControlSet\Services\EventLog\<M y Custom Logto check
which sources have been registered for that log and the only source that is
registered is the name of the log itself. I examined the installation log
file and wasn't able to find any reference to the custom event sources that
were supposed to be registered, like it never happened.

However, if I execute my custom install action DLL using the InstallUtil.exe
I can clearly see in the installation log file that all my custom event log
sources are being registered and they appear in the abovementioned registry
location as expected.

To verify that the EventLogInstaller instances are being called during the
installation I have created a subclass of the EventLogInstaller and
overridden its Install/Commit/Uninstall events to display a message box. I
can see the message box appear on the screen for each of the custom sources
during the installation, which tells me that the EventLogInstaller is being

The question is - why doesn't it register any of the event log sources?

Regards, thanks in advance !!!

Jul 7 '08 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.