summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorruki <[email protected]>2021-12-05 21:24:46 +0800
committerGitHub <[email protected]>2021-12-05 21:24:46 +0800
commitb062cae6275c91a0c415524353daa49220cbb3f8 (patch)
tree52c5d9a1e572cbbb342d1731f6cdb21b44c5fd30 /scripts
parent20302ed8c53084e891a79af04deddc7e21cb63f8 (diff)
Update installer.nsi
Diffstat (limited to 'scripts')
-rw-r--r--scripts/installer.nsi6
1 files changed, 5 insertions, 1 deletions
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\*.*"