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 922020c57a
commit c2e165d825

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"