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

This commit is contained in:
huzibaca
2024-11-24 01:24:51 +08:00
Unverified
parent dde7ead751
commit 3e20404959

View File

@@ -862,6 +862,10 @@ Section Uninstall
Delete "$INSTDIR\\{{this}}"
{{/each}}
; Delete clash-verge.desktop
IfFileExists "$INSTDIR\Clash Verge.exe" 0 +2
Delete "$INSTDIR\Clash Verge.exe"
; Delete uninstaller
Delete "$INSTDIR\uninstall.exe"