So I have been following a few Choco issues recently where app installs have been failing, So im going to expand my commands to some windows PowerShell key commands as well. I modified the script for installing Google Chrome to install Firefox. In this one, if you are installing on ARM or x64 etc you need to change the bold download link to the correct version. (As im testing this on an ARM windows 10 install it includes the ARM installer)
I’ve tested it, it downloads and installs Firefox, but as usual please use it at your own discretion. No responsibility is taken for anything wrong it does 🙂
$LocalTempDir = $env:TEMP; $FirefoxInstaller = "FirefoxInstaller.exe"; (new-object System.Net.WebClient).DownloadFile('https://download-installer.cdn.mozilla.net/pub/firefox/releases/88.0/win64-aarch64/en-GB/Firefox%20Setup%2088.0.exe', "$LocalTempDir\$FirefoxInstaller"); & "$LocalTempDir\$FirefoxInstaller" /silent /install; $Process2Monitor = "FirefoxInstaller"; Do { $ProcessesFound = Get-Process | ?{$Process2Monitor -contains $_.Name} | Select-Object -ExpandProperty Name; If ($ProcessesFound) { "Still running: $($ProcessesFound -join ', ')" | Write-Host; Start-Sleep -Seconds 2 } else { rm "$LocalTempDir\$FirefoxInstaller" -ErrorAction SilentlyContinue -Verbose } } Until (!$ProcessesFound)