diff --git a/src/platform/windows.rs b/src/platform/windows.rs index 792243c27..c9f83389a 100644 --- a/src/platform/windows.rs +++ b/src/platform/windows.rs @@ -1020,6 +1020,7 @@ copy /Y \"{tmp_path}\\Uninstall {app_name}.lnk\" \"{start_menu}\\\" // https://docs.microsoft.com/zh-cn/windows/win32/msi/uninstall-registry-key?redirectedfrom=MSDNa // https://www.windowscentral.com/how-edit-registry-using-command-prompt-windows-10 // https://www.tenforums.com/tutorials/70903-add-remove-allowed-apps-through-windows-firewall-windows-10-a.html + // Note: without if exist, the bat may exit in advance on some Windows7 https://github.com/rustdesk/rustdesk/issues/895 let dels = format!( " if exist \"{mk_shortcut}\" del /f /q \"{mk_shortcut}\"