Skip to content

Instantly share code, notes, and snippets.

@hbisneto
Created October 19, 2023 18:50
Show Gist options
  • Save hbisneto/5a4c04606b7995d0be7ff04d70913945 to your computer and use it in GitHub Desktop.
Save hbisneto/5a4c04606b7995d0be7ff04d70913945 to your computer and use it in GitHub Desktop.
Download Mozilla Firefox with PowerShell
# 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
@liszca
Copy link

liszca commented May 9, 2025

Just to make things shorter:
Invoke-WebRequest "https://download.mozilla.org/?product=firefox-latest&os=win&lang=en-US" -OutFile FirefoxInstaller.exe

@hbisneto
Copy link
Author

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