fix: If an older version of the executable exists, delete it(2)

This commit is contained in:
huzibaca 2024-11-24 08:25:46 +08:00
parent c5d009c2cd
commit 8564a58eab

View File

@ -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}"