I know you can delete the file DW20.exe to remove Microsoft Error Reporting's core executable, but is there a system command to kill it?

Thanks

sknake commented: duplicate posts -1

What does this have to do with C#?

Uh... I want to execute a system command in my C# project to disable Error Reporting?

Have an answer?

There is a registry setting that can be changed. Look at these three articles:
http://www.theeldergeek.com/windows_xp_error_reporting.htm
http://social.msdn.microsoft.com/Forums/en-US/windowsgeneraldevelopmentissues/thread/b0b8767a-c721-4e67-ae95-bd57e829200d
http://msdn.microsoft.com/en-us/library/bb513638(VS.85).aspx

We've tried altering the programs in the blocklist, and it doesn't seem to make a difference.
The furthest we've got is by adding the registry entries [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PCHealth\ErrorReporting\DoReport] and [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PCHealth\ErrorReporting\ShowUI] and setting them to 0 - this works some of the time (it works all the time if the exception comes from managed code), but if the exception occurs in some external code, for instance a windows media player codec, then the dialog still appears.

The only way that worked for me to disable the error reporting dialog completely was adding a DWORD setting with a value of 0 in:

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting\DontShowUI]

[Start] [Run] [Regedit]
Registry Key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PCHealth\ErrorReporting
Modify/Create the Value Name according to the Value Data listed below.
Data Type: REG_DWORD [Dword Value] // Value Name: DoReport
Value Data: [0 = Don’t Send Reports / 1 = Do Send Reports]
Exit Registry and Reboot

This will probably bring up the UAC dialog in Vista. You can access the registry with the Microsoft.Win32.Registry class.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.