public static void DisableWer() { try { WerAddExcludedApplication(Process.GetCurrentProcess().MainModule.FileName, 0); } catch { } }