void UnregisterProfiler(MachineWideUninstallation mwUninstl) { var profLocs = EnvironmentRepository.GetProfilerLocations(); if (profLocs == null || profLocs.Length == 0) { return; } foreach (var profLoc in EnvironmentRepository.GetProfilerLocations()) { mwUninstl.OnProfilerUnregistering(profLoc); var stdout = Regsvr32Executor.StartUninstalling(profLoc.PathOfInstalling); mwUninstl.OnProfilerUnregistered(stdout); } }
void UnregisterProfiler(MachineWideUninstallation mwUninstl) { var profLocs = EnvironmentRepository.GetProfilerLocations(); if (profLocs == null || profLocs.Length == 0) return; foreach (var profLoc in EnvironmentRepository.GetProfilerLocations()) { mwUninstl.OnProfilerUnregistering(profLoc); var stdout = Regsvr32Executor.StartUninstalling(profLoc.PathOfInstalling); mwUninstl.OnProfilerUnregistered(stdout); } }