public void UninstallCounters() { if (PerformanceCounterCategory.Exists(PerformanceCounters.CategoryName)) { PerformanceCounterCategory.Delete(PerformanceCounters.CategoryName); } }