From e9c4f5729a33d81b4582c617499ed68078a4794f Mon Sep 17 00:00:00 2001 From: A-312 Date: Sat, 22 Feb 2020 07:59:15 +0100 Subject: [PATCH] =?UTF-8?q?Commande=20native=20=C3=A0=20la=20place=20d'unz?= =?UTF-8?q?ip?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/win/install_zds.ps1 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/win/install_zds.ps1 b/scripts/win/install_zds.ps1 index 50a03e1a74..5805c45cc3 100644 --- a/scripts/win/install_zds.ps1 +++ b/scripts/win/install_zds.ps1 @@ -116,8 +116,9 @@ if (-not (_in "-node") -and ((_in "+node") -or (_in "+base") -or (_in "+full"))) PrintInfo " | -> Unzip node." - unzip -q temp_download\node.zip -d "$APP_PATH"; $exVal=$LASTEXITCODE + 0 - ren "$APP_PATH\$node_filename" node; $exVal=($LASTEXITCODE + $exVal) + # unzip + Expand-Archive "temp_download\node.zip" -DestinationPath "$APP_PATH"; $exVal=$LASTEXITCODE + 0 + ren "$APP_PATH\$node_filename" "node"; $exVal=($LASTEXITCODE + $exVal) if ($exVal -ne 0) { rm -r "$APP_PATH\$node_filename" Error "Error: Cannot install nodejs." 11