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