From 405100d49fbf8ba388c337fcff29eab7b60fcd8a Mon Sep 17 00:00:00 2001 From: WilliamMyers1 Date: Wed, 8 Mar 2017 12:02:44 -0800 Subject: [PATCH] Add files via upload Added script to download latest version of Mozilla Firefox ESR (32-Bit), this browser will support java up to 2018. --- Application Management/Install-FireFoxESR.ps1 | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 Application Management/Install-FireFoxESR.ps1 diff --git a/Application Management/Install-FireFoxESR.ps1 b/Application Management/Install-FireFoxESR.ps1 new file mode 100644 index 0000000..b311cae --- /dev/null +++ b/Application Management/Install-FireFoxESR.ps1 @@ -0,0 +1,34 @@ +# Mozilla Firefox Install Script +# This script will fetch and then install the most current version of the 32-Bit Mozilla Firefox ESR. +# 2017/03/07 - William.Myers1 + + +# Specify the URL Source for Firefox. +$FireFoxSourceURI = "https://download.mozilla.org/?product=firefox-esr-latest&lang=en-US" + +# Specify the location to cache the download +$DownloadLocation = "$ENV:Temp\Firefox Setup esr.exe" + +#Define a list of processes to stop +$ProcessesToStop = @( +"Firefox*" +) + +# Retrieve the file +Write-host "Retrieving download from $FireFoxSourceURI" +write-host "Downloading file to $DownloadLocation" +Invoke-WebRequest -uri $FireFoxSourceURI -Outfile "$DownloadLocation" + +# Stop running processes +foreach ($ProcToStop in $ProcessesToStop){ + get-process $ProcToStop -EA SilentlyContinue |Stop-Process -FOrce +} + + +# Launch the installer. +start-process -filepath "$DownloadLocation" -argumentlist "-MS" -wait + + +# Delete the global desktop shortcut +IF (Test-path "$ENV:SystemDrive\Users\Public\Desktop\Mozilla Firefox.lnk"){ + Remove-item "$ENV:SystemDrive\Users\Public\Desktop\Mozilla Firefox.lnk"} \ No newline at end of file