Disable WerFault.exe on crashes for specific processes on Windows 10

Is it possible to have werfault.exe not run when specific executables crash? I'm developing some software and (yes I know, it's hard to believe) it occasionally crashes (on purpose) and each time this happens it takes a few seconds for werfault.exe to do whatever it wants.

It seems I can turn off the whole service that supports this feature, but I'm happy for it to run on other parts of the system.

So can I tell it to not worry about a certain subset of executables?

EDIT As requested by @Moab, here was my research:

  • Google for "disable werfault.exe for specific processes windows 10" and a few variations.
  • Wade through several pages of results.
  • Conclude that this information is not readily available, or I don't know the correct terminology to search for it.
  • Realise that there's an opportunity to capture this on Stack Exchange as a canonical example of the problem, helping me and others.
  • Think a little more about how to phrase the problem.
  • Consider whether to ask on Stack Overflow, Super User or Server Fault.
  • Choose Super User seeing as this is likely a desktop computer administration issue, not a server one.
  • Head over, ask question.
  • Get useful answer quickly. Thank author, vote and accept answer.
  • Provide some more relevant information about a useful API I discovered for this in a comment on the accepted answer.
  • Later, scratch head at why someone objects so strongly to my question.
  • Spend time wondering whether I could really have offered some extra information to the question to help.
  • Figure there's nothing to do but try it, so here it is.

EDIT 2 Actually the above steps are now redundant. This question is now the number one result on Google for my original search terms. I figure this achieves the fourth point from above.

7

2 Answers

You are experiencing Windows Error Reporting (which can be nice sometimes). You can absolutely configure it to not run for certain applications.

The MSDN page WER Settings, documents that you can configure Windows Error Reporting for the entire machine or per user:

HKEY_CURRENT_USER\Software\Microsoft\Windows\Windows Error Reporting
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\Windows Error Reporting

Open regedit and add the following as a REG_SZ (a string value). You might have to add the ExcludedApplications key as well:

ExcludedApplications\[Application Name]

Note: MSDN documents that you should use the WerAddExcludedApplication function, rather than manually adding items to the Windows Error Reporting registry key, to have the excluded.

I would use this if you want to create a .reg file:

Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting\ExcludedApplications]
"YourAppName.exe"=""
5

Copy this into a .reg file and import it by doing a double click on it

Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Windows\Windows Error Reporting\ExcludedApplications]
"MyApp.exe"=dword:00000001
3

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like