EventLog plug-in: Difference between revisions
No edit summary |
No edit summary |
||
Line 7: | Line 7: | ||
== Description == | == Description == | ||
'''Version:''' 5th March 2007.<br> | |||
'''Supported on:''' ''Windows NT, Windows 2000, Windows XP''. | |||
The EventLog plugin for NSIS provides a function to write Events to | |||
the windows Event Log. | |||
FUNCTIONS | |||
--------- | |||
WriteEventLog <server> <log> <type> <category> <message> <text> | |||
Writes and event to the EventLog | |||
<server> Network name of PC to write events to | |||
Leave blank to write to local PC | |||
<log> Event log to write | |||
Standard windows Event Logs are "System" and "Application" | |||
but other can be defined by user. If specific event log | |||
is not found "Application" will be used | |||
<type> Type of message to write | |||
"0" - Information | |||
"1" - Error | |||
"2" - Warning | |||
<category> Event category. Can be any value and is specific to the event | |||
log currently written. | |||
<message> ID of the message to write. This id is specific to the event | |||
log currently written. | |||
<text> Message text to write to event log (up to 1024 bytes) | |||
== Usage Example == | |||
<highlight-nsis> | |||
</highlight-nsis> | |||
[[Category:Plugins]] | [[Category:Plugins]] |
Revision as of 22:02, 6 March 2007
Author: sgiusto@mmpoint.it (talk, contrib) |
Links
EventLog.zip (34 KB)
Description
Version: 5th March 2007.
Supported on: Windows NT, Windows 2000, Windows XP.
The EventLog plugin for NSIS provides a function to write Events to
the windows Event Log.
FUNCTIONS
WriteEventLog <server> <log> <type> <category> <message> <text>
Writes and event to the EventLog <server> Network name of PC to write events to Leave blank to write to local PC <log> Event log to write Standard windows Event Logs are "System" and "Application" but other can be defined by user. If specific event log is not found "Application" will be used <type> Type of message to write "0" - Information "1" - Error "2" - Warning <category> Event category. Can be any value and is specific to the event log currently written. <message> ID of the message to write. This id is specific to the event log currently written. <text> Message text to write to event log (up to 1024 bytes)