Forums | Admin

Discussion Forums: help

Start New Thread Start New Thread

 

By: Daniel Berger
RE: How can I delete eventsource from registr [ reply ]  
2008-09-18 18:12
I think you can do it with the win32-registry library that ships with the stdlib, but I haven't checked.

Regards,

Dan

By: Qi Lu
How can I delete eventsource from registry? [ reply ]  
2008-09-18 15:55
I add my event source into the registry after I run:

EventLog.add_event_source(
:source => EVENT_LOG,
:key_name => SOURCE_NAME,
:category_count => CATEGORIES,
:event_message_file => dll_file,
:category_message_file => dll_file,
:parameter_message_file => dll_file
)

How can I deregister the event_source from register without manually delete it from regedit? Is a ruby function like 'EventLog.delete_event_source' available?

Thank you in advance.

Qi