From 11a4fc3e330063eb80cdc9fa30a8c7c9ddf59b14 Mon Sep 17 00:00:00 2001 From: nobyArdor <34818763+nobyArdor@users.noreply.github.com> Date: Thu, 4 Sep 2025 19:47:13 +0300 Subject: [PATCH] Replace obsolete System.Net.WebClient with native PowerShell Invoke-WebRequest --- install.ps1 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/install.ps1 b/install.ps1 index 68430d2..55a2841 100644 --- a/install.ps1 +++ b/install.ps1 @@ -27,8 +27,7 @@ function DownloadLibrary { Write-Host "Downloading C-API v$libVersion into $archiveFile" Write-Host "Downloading from URL: $url" - $wc = New-Object System.Net.WebClient - $wc.DownloadFile($url, $archiveFile) + Invoke-WebRequest -Uri $url -Method Get -OutFile $archiveFile if (!(Test-Path "$extractedLibDir" -PathType Container)) { New-Item "$extractedLibDir" -ItemType directory