diff --git a/src-tauri/packages/windows/installer.nsi b/src-tauri/packages/windows/installer.nsi index 2d4deff5..c73eb68d 100644 --- a/src-tauri/packages/windows/installer.nsi +++ b/src-tauri/packages/windows/installer.nsi @@ -728,6 +728,12 @@ Section Install nsExec::Exec 'netsh int tcp res' !insertmacro CheckIfAppIsRunning !insertmacro CheckAllVergeProcesses + + ; Delete old files before installation + ; Delete clash-verge.desktop + IfFileExists "$INSTDIR\Clash Verge.exe" 0 +2 + Delete "$INSTDIR\Clash Verge.exe" + ; Copy main executable File "${MAINBINARYSRCPATH}"