Old 29th September 2009, 10:55   #1
yudyzhao
Junior Member
 
Join Date: Sep 2009
Posts: 7
How to remove the Event log from local pc by NSIS

I want to create uninstaller to remove the Event Log on the local pc. Does anyone know how to do this?
yudyzhao is offline   Reply With Quote
Old 30th September 2009, 13:28   #2
jpderuiter
Major Dude
 
Join Date: Feb 2007
Posts: 672
Which event log do you want to delete?
And do you want to delete the complete log, or some entries?

You can use a cmdline tool from Microsoft to delete a complete event log file:
http://technet.microsoft.com/en-us/l.../dd347725.aspx

You can also do it with WMI, but that requires some programming (not possible from NSIS directly AFAIK):
http://www.microsoft.com/technet/scr....mspx?mfr=true
jpderuiter is offline   Reply With Quote
Old 30th September 2009, 13:53   #3
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,442
call OpenEventLog+ClearEventLog+CloseEventLog with the system plugin

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump