Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   How to remove the Event log from local pc by NSIS (http://forums.winamp.com/showthread.php?t=313138)

yudyzhao 29th September 2009 10:55

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?

jpderuiter 30th September 2009 13:28

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

Anders 30th September 2009 13:53

call OpenEventLog+ClearEventLog+CloseEventLog with the system plugin


All times are GMT. The time now is 17:47.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.