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:
commit
fa950f3565
2 changed files with 17 additions and 2 deletions
|
|
@ -3,6 +3,9 @@
|
||||||
## Init ##
|
## Init ##
|
||||||
#Requires -Version 3.0
|
#Requires -Version 3.0
|
||||||
clear
|
clear
|
||||||
|
if (Test-Path Env:\DEBUG) {
|
||||||
|
Set-PSDebug -Trace 1
|
||||||
|
}
|
||||||
$host.UI.RawUI.WindowTitle = "Wizard Kit: Build Tool"
|
$host.UI.RawUI.WindowTitle = "Wizard Kit: Build Tool"
|
||||||
$wd = $(Split-Path $MyInvocation.MyCommand.Path)
|
$wd = $(Split-Path $MyInvocation.MyCommand.Path)
|
||||||
$bin = (Get-Item $wd).Parent.FullName
|
$bin = (Get-Item $wd).Parent.FullName
|
||||||
|
|
@ -14,6 +17,15 @@ $host.UI.RawUI.BackgroundColor = "black"
|
||||||
$host.UI.RawUI.ForegroundColor = "white"
|
$host.UI.RawUI.ForegroundColor = "white"
|
||||||
$progressPreference = 'silentlyContinue'
|
$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 ##
|
## Functions ##
|
||||||
function download-file {
|
function download-file {
|
||||||
param ([String]$path, [String]$name, [String]$url)
|
param ([String]$path, [String]$name, [String]$url)
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ A collection of scripts to help technicians service Windows systems.
|
||||||
|
|
||||||
## Requirements ##
|
## Requirements ##
|
||||||
|
|
||||||
* PowerShell 3.0 or newer
|
* PowerShell 3.0 or newer<sup>1</sup>
|
||||||
* 6 Gb disk space
|
* 6 Gb disk space
|
||||||
|
|
||||||
## Initial Setup ##
|
## Initial Setup ##
|
||||||
|
|
@ -35,4 +35,7 @@ A collection of scripts to help technicians service Windows systems.
|
||||||
* `Installers`
|
* `Installers`
|
||||||
* `Misc`
|
* `Misc`
|
||||||
* `Repairs`
|
* `Repairs`
|
||||||
* `Uninstallers`
|
* `Uninstallers`
|
||||||
|
|
||||||
|
### Notes ###
|
||||||
|
1. PowerShell 6.0 on Windows 7 is not supported by the build script.
|
||||||
Loading…
Reference in a new issue