Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 866
Pete Avatar asked Nov 15 '22 11:11

Pete


1 Answers

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.

like image 186
Joey Avatar answered Dec 06 '22 12:12

Joey