Load ZIP assemblies explicitly in Windows PowerShell 5.1
This commit is contained in:
1 parent
d1f5b7e5a2
commit
8d5e70eee5
2 files changed
+2
No files matched your search
@@ -98,6 +98,7 @@ try {
|
||||
}
|
||||
}
|
||||
if ($platformCount -ne 1 -or $data.Count -eq 0 -or $assets.Count -ne ($data.Count + 1)) { throw 'Incomplete release asset manifest.' }
|
||||
Add-Type -AssemblyName System.IO.Compression
|
||||
Add-Type -AssemblyName System.IO.Compression.FileSystem
|
||||
foreach ($asset in $assets) {
|
||||
$name = $asset.name
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
# network download, admin rights or long-path registry configuration is needed.
|
||||
param([string]$Installer = (Join-Path $PSScriptRoot 'Install-Windows.ps1'))
|
||||
$ErrorActionPreference = 'Stop'
|
||||
Add-Type -AssemblyName System.IO.Compression
|
||||
Add-Type -AssemblyName System.IO.Compression.FileSystem
|
||||
$temp = Join-Path ([IO.Path]::GetTempPath()) ('Raptor-installer-test-' + [guid]::NewGuid().ToString('N'))
|
||||
New-Item -ItemType Directory -Path $temp | Out-Null
|
||||
|
||||
Reference in new issue
Block a user