Compare commits

...

3 commits

Author SHA1 Message Date
Calyx Hikari
c99a3c7384 Update index.html
Some checks failed
Automatic Build Script / build (push) Has been cancelled
2025-11-16 12:16:17 +08:00
Calyx Hikari
32c0730ee1 Fix server check 2025-11-16 12:10:51 +08:00
Calyx Hikari
c67816dcd0 Move install directX section 2025-11-16 12:05:42 +08:00

View file

@ -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 ---
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 (Y/N)?"
$dxInstallOption = Get-UserConfirmation -Message "" -TimeoutSeconds 10 -Default "N"
}
$tempDir = New-Item -ItemType Directory -Path ([IO.Path]::Combine($env:TEMP, [guid]::NewGuid().ToString()))
$aria2Dir = Join-Path $tempDir "aria2"
$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) {
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)"