How to disable the pop up that Windows shows when an app crashes

Hi all,

The other day a customer of mine was trying to disable the pop up dialog that Windows shows after an application crashes.

On Windows XP, they could get rid of it by going to "Control Panel > System Properties > Advanced > Error reporting" , clicking on "Disable error reporting" and disabling "But notify me when critical error occurs" .

On Windows 7 on the other hand, if we go to "Control Panel\System and Security\Action Center\Problem Reporting Settings" and select "Never check for solutions" , we still see a dialog when app crashes. The dialog says:

[Window Title]
MyAppName

[Main Instruction]
MyAppName has stopped working

[Content]
A problem caused the program to stop working correctly. Please close the program.

[Close the program] [Debug the program]

 

A command like this won't work, as it has the same effect than the control panel: serverWerOptin /disable.

We will have to set this registry value to 1 instead: HKEY_CURRENT_USER\Software\ Microsoft\Windows\Windows Error Reporting\DontShowUI

I hope this helps.

Regards,

 

Alex (Alejandro Campos Magencio)

Comments

  • Anonymous
    October 27, 2011
    The comment has been removed
  • Anonymous
    March 22, 2012
    Unfortunately this is no the whole thing. I think to remember there are a few things more one has to tweek. DrWatson and so on
  • Anonymous
    March 22, 2012
    Windows Registry Editor Version 5.00[HKEY_LOCAL_MACHINESOFTWAREMicrosoftPCHealthErrorReporting]"AllOrNone"=dword:00000001"IncludeMicrosoftApps"=dword:00000000"IncludeWindowsApps"=dword:00000000"IncludeKernelFaults"=dword:00000000"DoReport"=dword:00000000"ShowUI"=dword:00000000[HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionAeDebug]"Auto"="1""Debugger"=""c:\WINDOWS\system32\vsjitdebugger.exe" -p %ld -e %ld""UserDebuggerHotKey"=dword:00000000[HKEY_LOCAL_MACHINESOFTWAREMicrosoftDrWatson]"AppendToLogFile"=dword:00000001"VisualNotification"=dword:00000000Windows Registry Editor Version 5.00[HKEY_LOCAL_MACHINESOFTWAREMicrosoftPCHealthErrorReporting]"AllOrNone"=dword:00000001"IncludeMicrosoftApps"=dword:00000000"IncludeWindowsApps"=dword:00000000"IncludeKernelFaults"=dword:00000000"DoReport"=dword:00000000"ShowUI"=dword:00000000[HKEY_LOCAL_MACHINESOFTWAREMicrosoftPCHealthErrorReportingDW][HKEY_LOCAL_MACHINESOFTWAREMicrosoftPCHealthErrorReportingDWInstalled]"DW0200"="C:\PROGRA~1\COMMON~1\MICROS~1\DW\DW20.EXE"[HKEY_LOCAL_MACHINESOFTWAREMicrosoftPCHealthErrorReportingExclusionList][HKEY_LOCAL_MACHINESOFTWAREMicrosoftPCHealthErrorReportingInclusionList]Windows Registry Editor Version 5.00[HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlWindows]"ErrorMode"=dword:00000002that should do
  • Anonymous
    January 13, 2014
    DontShowUI=1 was just what I needed!  Thanks!
  • Anonymous
    September 30, 2015
    The definition apply for all users? or just on the user that I logged in to at the moment I change it from 0 to 1? (the path includes the words "Current User"..). Thanks.