This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: Creating source for Windows Event Log
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 19, 2009
05:29 PM
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.
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.
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 22, 2009
01:12 AM
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
http://msdn.microsoft.com/en-us/library/aa363648(VS.85).aspx
http://msdn.microsoft.com/en-us/library/aa363661(VS.85).aspx
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 22, 2009
11:48 AM
Thank you! This will be a much better solution since it can more easily work with rollbacks and uninstalls also.
