mirror of
https://github.com/msvc-win/get.msvc.win.git
synced 2025-12-16 05:07:39 +00:00
Move install directX section
This commit is contained in:
parent
026ae246b6
commit
c67816dcd0
1 changed files with 4 additions and 4 deletions
|
|
@ -45,16 +45,16 @@ function Main {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# --- Elevated section ---
|
||||||
|
New-Item -Path $flagPath -ItemType File -Force | Out-Null
|
||||||
|
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?"
|
||||||
$dxInstallOption = Get-UserConfirmation -Message "" -TimeoutSeconds 10 -Default "N"
|
$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..."
|
|
||||||
|
|
||||||
$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"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue