Created
October 19, 2023 18:50
-
-
Save hbisneto/5a4c04606b7995d0be7ff04d70913945 to your computer and use it in GitHub Desktop.
Download Mozilla Firefox with PowerShell
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Specify the URL of the Firefox download file | |
$url = "https://download.mozilla.org/?product=firefox-latest&os=win&lang=en-US" | |
# Specify the path for the downloaded file | |
$output = "$env:temp\FirefoxInstaller.exe" | |
# Download the file | |
Invoke-WebRequest -Uri $url -OutFile $output | |
# Start the installation | |
Start-Process -FilePath $env:temp\FirefoxInstaller.exe -Args "/silent /install" -Verb RunAs -Wait |
Just to make things shorter:
Invoke-WebRequest "https://download.mozilla.org/?product=firefox-latest&os=win&lang=en-US" -OutFile FirefoxInstaller.exe
Nice! Good! Thank you! :)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just to make things shorter:
Invoke-WebRequest "https://download.mozilla.org/?product=firefox-latest&os=win&lang=en-US" -OutFile FirefoxInstaller.exe