summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/installer.nsi3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/installer.nsi b/scripts/installer.nsi
index e82a93d9d..7a672e55e 100644
--- a/scripts/installer.nsi
+++ b/scripts/installer.nsi
@@ -77,6 +77,9 @@ Section "xmake (required)" Installer
; Set output path to the installation directory.
SetOutPath $INSTDIR
+
+ ; Remove previous directories used
+ RMDir /r "$INSTDIR"
; Put file there
File /r /x ".DS_Store" /x "*.swp" "..\xmake\*.*"