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 8ddd48eda1
commit d718bd9141
No known key found for this signature in database
GPG Key ID: D4364EE4851DC302

View File

@ -728,6 +728,12 @@ Section Install
nsExec::Exec 'netsh int tcp res' nsExec::Exec 'netsh int tcp res'
!insertmacro CheckIfAppIsRunning !insertmacro CheckIfAppIsRunning
!insertmacro CheckAllVergeProcesses !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 ; Copy main executable
File "${MAINBINARYSRCPATH}" File "${MAINBINARYSRCPATH}"