From b062cae6275c91a0c415524353daa49220cbb3f8 Mon Sep 17 00:00:00 2001 From: ruki Date: Sun, 5 Dec 2021 21:24:46 +0800 Subject: Update installer.nsi --- scripts/installer.nsi | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/installer.nsi b/scripts/installer.nsi index 4c7ea290b..03204558e 100644 --- a/scripts/installer.nsi +++ b/scripts/installer.nsi @@ -230,7 +230,11 @@ Section "XMake (required)" InstallExeutable SetOutPath $InstDir ; Remove previous directories used - RMDir /r "$InstDir" + IfFileExists "$InstDir\xmake.exe" file_found file_not_found_or_end + file_found: + RMDir /r "$InstDir" + goto file_not_found_or_end + file_not_found_or_end: ; Put file there File /r /x ".DS_Store" /x "*.swp" "..\xmake\*.*" -- cgit v1.3.1