diff --git a/.bin/Scripts/build_kit.ps1 b/.bin/Scripts/build_kit.ps1 index 74f5bca8..6d95bfb6 100644 --- a/.bin/Scripts/build_kit.ps1 +++ b/.bin/Scripts/build_kit.ps1 @@ -3,6 +3,9 @@ ## Init ## #Requires -Version 3.0 clear +if (Test-Path Env:\DEBUG) { + Set-PSDebug -Trace 1 +} $host.UI.RawUI.WindowTitle = "Wizard Kit: Build Tool" $wd = $(Split-Path $MyInvocation.MyCommand.Path) $bin = (Get-Item $wd).Parent.FullName @@ -14,6 +17,15 @@ $host.UI.RawUI.BackgroundColor = "black" $host.UI.RawUI.ForegroundColor = "white" $progressPreference = 'silentlyContinue' +## Safety Check ## +if ($PSVersionTable.PSVersion.Major -eq 6 -and $PSVersionTable.OS -imatch "Windows 6.1") { + Write-Host -ForegroundColor "Red" "`nAborted." + Write-Host "`nThis script doesn't support PowerShell 6.0 on Windows 7." + Write-Host "Press Enter to exit... " -NoNewLine + Read-Host + exit +} + ## Functions ## function download-file { param ([String]$path, [String]$name, [String]$url) diff --git a/README.md b/README.md index 5d81f2f0..b12db904 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ A collection of scripts to help technicians service Windows systems. ## Requirements ## -* PowerShell 3.0 or newer +* PowerShell 3.0 or newer1 * 6 Gb disk space ## Initial Setup ## @@ -35,4 +35,7 @@ A collection of scripts to help technicians service Windows systems. * `Installers` * `Misc` * `Repairs` -* `Uninstallers` \ No newline at end of file +* `Uninstallers` + +### Notes ### +1. PowerShell 6.0 on Windows 7 is not supported by the build script. \ No newline at end of file