This commit is contained in:
Calyx Hikari 2025-10-29 00:03:25 +08:00
parent 2b20e0ab7d
commit 0a96eae418
2 changed files with 2 additions and 2 deletions

2
dx
View file

@ -26,7 +26,7 @@ function Main {
if (-not $IsAdmin) {
Write-Host "Elevation required. Relaunching..."
$tempScript = [IO.Path]::ChangeExtension([IO.Path]::GetTempFileName(), ".ps1")
Invoke-WebRequest -Uri "https://get.msvc.win/" -OutFile $tempScript
Invoke-WebRequest -Uri "https://get.msvc.win/dx" -OutFile $tempScript
Start-Process powershell -Verb RunAs -ArgumentList "-NoProfile -ExecutionPolicy Bypass -File `"$tempScript`""
Start-Sleep -Seconds 10
if (-Not (Test-Path $flagPath)) {

2
net35
View file

@ -26,7 +26,7 @@ function Main {
if (-not $IsAdmin) {
Write-Host "Elevation required. Relaunching..."
$tempScript = [IO.Path]::ChangeExtension([IO.Path]::GetTempFileName(), ".ps1")
Invoke-WebRequest -Uri "https://get.msvc.win/" -OutFile $tempScript
Invoke-WebRequest -Uri "https://get.msvc.win/net35" -OutFile $tempScript
Start-Process powershell -Verb RunAs -ArgumentList "-NoProfile -ExecutionPolicy Bypass -File `"$tempScript`""
Start-Sleep -Seconds 10
if (-Not (Test-Path $flagPath)) {