ARM64 workarounds
parent
c72349caa1
commit
08bd0bc60e
|
@ -3,7 +3,9 @@
|
|||
Function Get-WingetCmd {
|
||||
|
||||
#Get WinGet Path (if admin context)
|
||||
$ResolveWingetPath = Resolve-Path "$env:ProgramFiles\WindowsApps\Microsoft.DesktopAppInstaller_*_x64__8wekyb3d8bbwe" | Sort-Object { [version]($_.Path -replace '^[^\d]+_((\d+\.)*\d+)_.*', '$1') }
|
||||
# Includes Workaround for ARM64 (removed X64 and replaces it with a wildcard)
|
||||
$ResolveWingetPath = Resolve-Path "$env:ProgramFiles\WindowsApps\Microsoft.DesktopAppInstaller_*_*__8wekyb3d8bbwe" | Sort-Object { [version]($_.Path -replace '^[^\d]+_((\d+\.)*\d+)_.*', '$1') }
|
||||
|
||||
if ($ResolveWingetPath) {
|
||||
#If multiple version, pick last one
|
||||
$WingetPath = $ResolveWingetPath[-1].Path
|
||||
|
|
|
@ -5,6 +5,9 @@ function Test-Network {
|
|||
#Init
|
||||
$timeout = 0
|
||||
|
||||
# Workaround for ARM64 (Access Denied / Win32 internal Server error)
|
||||
$ProgressPreference = 'SilentlyContinue'
|
||||
|
||||
#Test connectivity during 30 min then timeout
|
||||
Write-Log "Checking internet connection..." "Yellow"
|
||||
While ($timeout -lt 1800) {
|
||||
|
|
Loading…
Reference in New Issue