Download and Install Latest Mozilla Firefox

0 Shares

With the great help of Bronson Magnan I’m continuing to make my application installation scripts used in my Automation Framework evergreen. Evergreen means that no changes are required to the scripts nor the task sequences, the script will always download the latest available version.

I’m pushing all the vendors to provide an evergreen download URL for their products and Parallels have already provided theirs. This is important because when patch Tuesday comes or before because of a critical security fix I can simply just rebuild my Master Images and all sofware will be up to date without lifting a finger. That’s #winops.

The script below will automatically download the latest version of Mozilla Firefox ESTand then run the installation. If there’s no new version and the source already exists it will just skip and jump to installation. Enjoy.

Update 16/09/2018

Fellow MVP Jeremy Moskowitz reached out about getting the script working for Firefox Extended Support Release (ESR) instead of Rapid Release (RR). The script above has been updated to leverage ESR instead of RR because of Firefox Group Policy.

0 Shares

Automation Framework Community Edition

The fastest way to build your lab environment.

Virtual Expo

Friday 30th of September 2022

7 thoughts on “Download and Install Latest Mozilla Firefox”

  1. Nice script!

    I initially had some trouble with it until I read some of the error messages. This was a newly built system and IE had not been launched for the first time yet. After opening and closing it (and dismissing the first launch wizard), the script ran perfectly.

    VERBOSE: Setting Arguments
    wget : The response content cannot be parsed because the Internet Explorer engine is not available, or Internet
    Explorer’s first-launch configuration is not complete. Specify the UseBasicParsing parameter and try again.
    At C:\Users\xxxx\Desktop\get-newest-firefox.ps1:11 char:22
    + $FFLatestVersion = ((wget -uri $FFReleaseNoticeURL | % content).split …
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : NotImplemented: (:) [Invoke-WebRequest], NotSupportedException
    + FullyQualifiedErrorId : WebCmdletIEDomNotSupportedException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand

    Reply
  2. Hey. Jeremy M here. I just tested this and it works great. Problem is, most orgs want Firefox ESR, not Firefox RR like that is just downloaded.

    Can you please adjust the script or make it a parameter or something to find and download latest ESR version and not just the RR version? Thanks !

    Reply
  3. This is some additional info from another system that seems to error if IE’s first-launch config is not done yet:

    VERBOSE: Setting Arguments
    Invoke-WebRequest : The response content cannot be parsed because the Internet Explorer engine is not available, or
    Internet Explorer’s first-launch configuration is not complete.

    Reply
  4. adding this registry entry prior to launching worked for me 🙂

    Windows Registry Editor Version 5.00

    ;Disable IE11 Welcome Screen
    [HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Internet Explorer\Main]
    “DisableFirstRunCustomize”=dword:00000001

    Reply
  5. Is there a way for the installer directory %username%\download\folder to be deleted after running? I’d prefer to keep the directory clean. Or a way to specify where I want the file to download in the script (e.g. C:\Support\Software\Firefox)? Then I can just throw in a delete command to cleanup after it runs?

    Reply

Leave a Comment