mirror of
https://github.com/clash-verge-rev/clash-verge-rev
synced 2025-05-06 01:03:44 +08:00
fix: If an older version of the executable exists, delete it(2)
This commit is contained in:
parent
8ddd48eda1
commit
d718bd9141
@ -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}"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user