From a80ac15677c97ba0bcb9b8b9ce998edfef9536e1 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Tue, 20 Jun 2023 16:06:07 +0200 Subject: [PATCH] Show warning before installing windows --- winfs/Scripts/Setup.ps1 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/winfs/Scripts/Setup.ps1 b/winfs/Scripts/Setup.ps1 index 7b21c0b..b1475e7 100644 --- a/winfs/Scripts/Setup.ps1 +++ b/winfs/Scripts/Setup.ps1 @@ -10,4 +10,7 @@ function Invoke-Diskpart { $drives = & wmic volume get "DriveLetter,Label"; $drive = $($($drives | Select-String -Pattern "winiso") -split "\s+")[0]; + +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";