diff --git a/Install.ps1 b/Install.ps1 index c9ef8ec..a8ba828 100644 --- a/Install.ps1 +++ b/Install.ps1 @@ -100,11 +100,13 @@ catch [System.Management.Automation.MethodInvocationException] { } } -Expand-Archive -Force -LiteralPath "$PWD\chrome_elf.zip" -DestinationPath $PWD +Add-Type -Assembly 'System.IO.Compression.FileSystem' +$zip = [System.IO.Compression.ZipFile]::Open("$PWD\chrome_elf.zip", 'read') +[System.IO.Compression.ZipFileExtensions]::ExtractToDirectory($zip, $PWD) +$zip.Dispose() + Remove-Item -LiteralPath "$PWD\chrome_elf.zip" - - try { $webClient.DownloadFile( # Remote file URL diff --git a/Install_rus.ps1 b/Install_rus.ps1 index dfd61b0..55636db 100644 --- a/Install_rus.ps1 +++ b/Install_rus.ps1 @@ -100,11 +100,13 @@ catch [System.Management.Automation.MethodInvocationException] { } } -Expand-Archive -Force -LiteralPath "$PWD\chrome_elf.zip" -DestinationPath $PWD +Add-Type -Assembly 'System.IO.Compression.FileSystem' +$zip = [System.IO.Compression.ZipFile]::Open("$PWD\chrome_elf.zip", 'read') +[System.IO.Compression.ZipFileExtensions]::ExtractToDirectory($zip, $PWD) +$zip.Dispose() + Remove-Item -LiteralPath "$PWD\chrome_elf.zip" - - try { $webClient.DownloadFile( # Remote file URL