windowsperlcommand-linecrashsystem

How do I suppress the "notify Microsoft" crash dialogs when I call a command from Perl?


I am calling a command-line program from my Perl script. When these programs crash, I am prompted with a messagebox asking me if I want to notify Microsoft. Since this is an automated system it would be desirable if I could suppress that message and continue with other things in my script. Is this possible?


Solution

  • You probably could use the WerAddExcludedApplication function to stop WER from kicking in when the program crashes. You should revert hat exclusion afterwards again with WerRemoveExcludedApplication.