From efb7e7f03a038fcb3315d7954ef5e413bd4c52ae Mon Sep 17 00:00:00 2001 From: Pete Batard Date: Thu, 28 Feb 2019 11:22:41 +0000 Subject: [PATCH] Add an option to download with browser --- Fido.ps1 | 72 ++++++++++++++++++++++++++++++++++++-------------------- 1 file changed, 46 insertions(+), 26 deletions(-) diff --git a/Fido.ps1 b/Fido.ps1 index bca5d65..973b6c4 100644 --- a/Fido.ps1 +++ b/Fido.ps1 @@ -1,5 +1,5 @@ # -# Fido - Full Windows ISO Downloader +# Fido - Retail Windows ISO Downloader # Copyright © 2019 Pete Batard # ConvertTo-ImageSource: Copyright © 2016 Chris Carter # @@ -30,16 +30,16 @@ param( # (Optional) Path to the file that should be used for the UI icon. [string]$Icon, # (Optional) The title to display on the application window - [string]$AppTitle = "Fido - Windows Retail ISO Downloader" + [string]$AppTitle = "Fido - Retail Windows ISO Downloader", + # (Optional) Whether to show the "Download in a browser" checkbox + [switch]$ShowBrowserOption = $True, + # (Optional) Test/Debug options + [switch]$Debug = $False, + [switch]$Expert = $False, + [switch]$Testing = $False ) #endregion -#region Testing -$Debug = $False -$Testing = $False -$Expert = $False -#endregion - Write-Host Please Wait... #region Assembly Types @@ -90,7 +90,7 @@ Add-Type -AssemblyName PresentationFramework #region Data $WindowsVersions = @( @( - "Windows 10", + @("Windows 10", "Windows10ISO"), @( "1809 R2 (Build 17763.107 - 2018.10)", @("Windows 10 Home/Pro", 1060), @@ -192,11 +192,11 @@ $WindowsVersions = @( ) ), @( - "Windows 8.1", + @("Windows 8.1", "windows8ISO"), @( "Update 3 (build 9600)", - @("Windows 8.1/Windows 8.1 Pro", 52), - @("Windows 8.1/Windows 8.1 Pro N", 55) + @("Windows 8.1", 52), + @("Windows 8.1 N", 55) @("Windows 8.1 Single Language", 48), @("Windows 8.1 Professional LE N", 71), @("Windows 8.1 Professional LE KN", -70), @@ -395,6 +395,7 @@ function Error([string]$ErrorMessage)