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
parent dde7ead751
commit 3e20404959
No known key found for this signature in database
GPG Key ID: D4364EE4851DC302

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"