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
Unverified
parent 8ddd48eda1
commit d718bd9141

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