mirror of
https://github.com/msvc-win/get.msvc.win.git
synced 2025-12-16 21:27:39 +00:00
Compare commits
No commits in common. "c99a3c73844f56eda8c0d742f8a1c9b39279aab4" and "026ae246b6b695760532caa15a0ba944c6c0e3c2" have entirely different histories.
c99a3c7384
...
026ae246b6
1 changed files with 7 additions and 7 deletions
14
index.html
14
index.html
|
|
@ -45,16 +45,16 @@ function Main {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$dxInstallOption = "Y"
|
||||||
|
if ($isServer) {
|
||||||
|
Write-Host "Windows Server detected. Would you like to install DirectX Runtime?"
|
||||||
|
$dxInstallOption = Get-UserConfirmation -Message "" -TimeoutSeconds 10 -Default "N"
|
||||||
|
}
|
||||||
|
|
||||||
# --- 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"
|
|
||||||
if ($isServer) {
|
|
||||||
Write-Host "Windows Server detected. Would you like to install DirectX Runtime (Y/N)?"
|
|
||||||
$dxInstallOption = Get-UserConfirmation -Message "" -TimeoutSeconds 10 -Default "N"
|
|
||||||
}
|
|
||||||
|
|
||||||
$tempDir = New-Item -ItemType Directory -Path ([IO.Path]::Combine($env:TEMP, [guid]::NewGuid().ToString()))
|
$tempDir = New-Item -ItemType Directory -Path ([IO.Path]::Combine($env:TEMP, [guid]::NewGuid().ToString()))
|
||||||
$aria2Dir = Join-Path $tempDir "aria2"
|
$aria2Dir = Join-Path $tempDir "aria2"
|
||||||
$aria2Exe = Join-Path $aria2Dir "aria2c.exe"
|
$aria2Exe = Join-Path $aria2Dir "aria2c.exe"
|
||||||
|
|
@ -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 $dxInstallOption -eq "N") {
|
if ($item.Name -Match "directx" -and $isServer) {
|
||||||
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