cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
AaronM
Level 6

Creating source for Windows Event Log

Is there something built in InstallShield to create sources for Windows Event Log? It requires administrative rights on all Operating Systems and elevation on Vista.

My alternative is to use a managed custom action by calling into a C# DLL and use the CreateEventSource method on System.Diagnostics.EventLog (link) class accordingly.
Labels (1)
0 Kudos
(3) Replies
AaronM
Level 6

There is also the System.Diagnostics.EventLogInstaller class (link)in .NET that is used in conjunction with InstallUtil.exe.
0 Kudos
setupcoder
Level 4

There is no need to use custom actions to create event logs and event log sources. Just create the appropriate registry keys and values according to the following Microsoft documentation:

http://msdn.microsoft.com/en-us/library/aa363648(VS.85).aspx

http://msdn.microsoft.com/en-us/library/aa363661(VS.85).aspx
0 Kudos
AaronM
Level 6

Thank you! This will be a much better solution since it can more easily work with rollbacks and uninstalls also.
0 Kudos