mirror of
https://github.com/msvc-win/get.msvc.win.git
synced 2025-12-15 12:47:40 +00:00
Fix server check
This commit is contained in:
parent
c67816dcd0
commit
32c0730ee1
1 changed files with 2 additions and 2 deletions
|
|
@ -48,7 +48,7 @@ function Main {
|
|||
# --- Elevated section ---
|
||||
New-Item -Path $flagPath -ItemType File -Force | Out-Null
|
||||
Write-Host "Running with elevated privileges..."
|
||||
|
||||
|
||||
$dxInstallOption = "Y"
|
||||
if ($isServer) {
|
||||
Write-Host "Windows Server detected. Would you like to install DirectX Runtime?"
|
||||
|
|
@ -159,7 +159,7 @@ function Main {
|
|||
if ($item.Name -Match "x64" -and $procArch -ne "AMD64" -and $buildVersion -lt 21390) {
|
||||
continue
|
||||
}
|
||||
if ($item.Name -Match "directx" -and $isServer) {
|
||||
if ($item.Name -Match "directx" -and $dxInstallOption -eq "N") {
|
||||
continue
|
||||
}
|
||||
$line = "$($item.Url)`n out=$($item.Name)"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue