Load ZIP assemblies explicitly in Windows PowerShell 5.1
This commit is contained in:
1 parent
d1f5b7e5a2
commit
7ecaa42b29
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.' }
|
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
|
Add-Type -AssemblyName System.IO.Compression.FileSystem
|
||||||
foreach ($asset in $assets) {
|
foreach ($asset in $assets) {
|
||||||
$name = $asset.name
|
$name = $asset.name
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
# network download, admin rights or long-path registry configuration is needed.
|
# network download, admin rights or long-path registry configuration is needed.
|
||||||
param([string]$Installer = (Join-Path $PSScriptRoot 'Install-Windows.ps1'))
|
param([string]$Installer = (Join-Path $PSScriptRoot 'Install-Windows.ps1'))
|
||||||
$ErrorActionPreference = 'Stop'
|
$ErrorActionPreference = 'Stop'
|
||||||
|
Add-Type -AssemblyName System.IO.Compression
|
||||||
Add-Type -AssemblyName System.IO.Compression.FileSystem
|
Add-Type -AssemblyName System.IO.Compression.FileSystem
|
||||||
$temp = Join-Path ([IO.Path]::GetTempPath()) ('Raptor-installer-test-' + [guid]::NewGuid().ToString('N'))
|
$temp = Join-Path ([IO.Path]::GetTempPath()) ('Raptor-installer-test-' + [guid]::NewGuid().ToString('N'))
|
||||||
New-Item -ItemType Directory -Path $temp | Out-Null
|
New-Item -ItemType Directory -Path $temp | Out-Null
|
||||||
|
|||||||
Reference in new issue
Block a user