Update the Windows install.

This commit is contained in:
markjcrane
2018-01-03 01:13:29 -07:00
parent 4829f22abf
commit 74abcb8196
26 changed files with 655 additions and 484 deletions

View File

@@ -0,0 +1,10 @@
# Get page with links, filter, and select latest version using pattern. Return file download URL.
Function Get-Link([string]$url, [string]$pattern) {
$link = (Invoke-WebRequest $url).Links | Where-Object {$_.href -like $pattern} | Select-Object -Last 1
Write-Host $link.href -ForegroundColor Gray
#Use System.URI to combine url parts
$uri = New-Object -TypeName System.URI -ArgumentList ([System.URI]$url),($link.href)
return $uri.AbsoluteUri
}