diff --git a/src/platform/windows.rs b/src/platform/windows.rs index 67a2af676..c708650b8 100644 --- a/src/platform/windows.rs +++ b/src/platform/windows.rs @@ -2161,9 +2161,11 @@ pub fn uninstall_service(show_new_window: bool) -> bool { sc stop {app_name} sc delete {app_name} if exist \"%PROGRAMDATA%\\Microsoft\\Windows\\Start Menu\\Programs\\Startup\\{app_name} Tray.lnk\" del /f /q \"%PROGRAMDATA%\\Microsoft\\Windows\\Start Menu\\Programs\\Startup\\{app_name} Tray.lnk\" + taskkill /F /IM {broker_exe} taskkill /F /IM {app_name}.exe{filter} ", app_name = crate::get_app_name(), + broker_exe = WIN_MAG_INJECTED_PROCESS_EXE, ); if let Err(err) = run_cmds(cmds, false, "uninstall") { Config::set_option("stop-service".into(), "".into());