diff --git a/janet-installer.nsi b/janet-installer.nsi index 8d354463..8d74988d 100644 --- a/janet-installer.nsi +++ b/janet-installer.nsi @@ -128,9 +128,9 @@ section "uninstall" # Remove files delete "$INSTDIR\logo.ico" - rmdir /S "$INSTDIR\Library" - rmdir /S "$INSTDIR\bin" - rmdir /S "$INSTDIR\C" + rmdir /r "$INSTDIR\Library" + rmdir /r "$INSTDIR\bin" + rmdir /r "$INSTDIR\C" # Remove env vars diff --git a/tools/cook.janet b/tools/cook.janet index 95283a05..173578f4 100644 --- a/tools/cook.janet +++ b/tools/cook.janet @@ -164,7 +164,7 @@ (defn copy "Copy a file or directory recursively from one location to another." [src dest] - (shell (if is-win "xcopy " "cp -rf ") `"` src `" "` dest (if is-win `" /h /y /e` `"`))) + (shell (if is-win "xcopy " "cp -rf ") `"` src `" "` dest (if is-win `" /y /e` `"`))) # # C Compilation