diff --git a/download_dependencies.ps1 b/download_dependencies.ps1 index c953613b..0bbb1d02 100644 --- a/download_dependencies.ps1 +++ b/download_dependencies.ps1 @@ -1,8 +1,9 @@ function Download($URL, $NAME){ - (New-Object System.Net.WebClient).DownloadFile($URL, $NAME+".zip") - Expand-Archive -Path $NAME".zip" -Force - Remove-Item -Path $NAME".zip" -Force + $DEST=$PSScriptRoot+"\"+$NAME+".zip" + (New-Object System.Net.WebClient).DownloadFile($URL, $DEST) + Expand-Archive -Path $DEST -Force + Remove-Item -Path $DEST -Force }