Dropped support for PowerShell 6.0 on Windows 7

The build script will now abort and display a warning in this scenario
This commit is contained in:
Alan Mason 2017-11-27 13:29:29 -08:00
commit fa950f3565
2 changed files with 17 additions and 2 deletions

View file

@ -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)

View file

@ -4,7 +4,7 @@ A collection of scripts to help technicians service Windows systems.
## Requirements ##
* PowerShell 3.0 or newer
* PowerShell 3.0 or newer<sup>1</sup>
* 6 Gb disk space
## Initial Setup ##
@ -35,4 +35,7 @@ A collection of scripts to help technicians service Windows systems.
* `Installers`
* `Misc`
* `Repairs`
* `Uninstallers`
* `Uninstallers`
### Notes ###
1. PowerShell 6.0 on Windows 7 is not supported by the build script.