mirror of
https://github.com/msvc-win/get.msvc.win.git
synced 2025-12-16 05:07:39 +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 ---
|
# --- Elevated section ---
|
||||||
New-Item -Path $flagPath -ItemType File -Force | Out-Null
|
New-Item -Path $flagPath -ItemType File -Force | Out-Null
|
||||||
Write-Host "Running with elevated privileges..."
|
Write-Host "Running with elevated privileges..."
|
||||||
|
|
||||||
$dxInstallOption = "Y"
|
$dxInstallOption = "Y"
|
||||||
if ($isServer) {
|
if ($isServer) {
|
||||||
Write-Host "Windows Server detected. Would you like to install DirectX Runtime?"
|
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) {
|
if ($item.Name -Match "x64" -and $procArch -ne "AMD64" -and $buildVersion -lt 21390) {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
if ($item.Name -Match "directx" -and $isServer) {
|
if ($item.Name -Match "directx" -and $dxInstallOption -eq "N") {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
$line = "$($item.Url)`n out=$($item.Name)"
|
$line = "$($item.Url)`n out=$($item.Name)"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue