winiso-valhalla/winfs/Scripts/Setup.ps1

7 lines
359 B
PowerShell
Raw Normal View History

$drives = & wmic volume get "DriveLetter,Label";
2024-07-22 15:47:59 +00:00
$drive = $($($drives | Select-String -Pattern "winiso-valhalla") -split "\s+")[0];
2023-06-20 14:06:07 +00:00
Write-Warning "Attention: This program will completely wipe your current disk #1 and install Windows on it. Are you sure you want to do this?"
Read-Host -Prompt "Hit enter to continue or CTRL+C to abort"
& "$drive\setup.exe";