From 24f8b4f5ca9d5b73407c77e088053635db76afc4 Mon Sep 17 00:00:00 2001
From: auberginehill
@@ -144,8 +144,7 @@
Description:
- Update-MozillaFirefox downloads a list of the most recent Firefox version numbers against which it compares the Firefox version numbers found on the system and displays, whether a Firefox update is needed or not. The actual update process naturally requires elevated rights, and if a working Internet connection is not found, Update-MozillaFirefox will exit at Step 6. Update-MozillaFirefox detects the installed Firefox(es) by querying the Windows registry for installed programs. The keys from HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\
and HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\
are read on 64-bit computers and on the 32-bit computers only the latter path is accessed. When run in a 'normal' PowerShell window, and all the detected Firefox versions are up-to-date, Update-MozillaFirefox will just check that everything is OK and leave without further ceremony at Step 11 (before trying to determine, whether it is run elevated or not).
+ Update-MozillaFirefox downloads a list of the most recent Firefox version numbers against which it compares the Firefox version numbers found on the system and displays, whether a Firefox update is needed or not. The actual update process naturally requires elevated rights and a working Internet connection. Update-MozillaFirefox detects the installed Firefox(es) by querying the Windows registry for installed programs. The keys from
HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\
and HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\
are read on 64-bit computers and on the 32-bit computers only the latter path is accessed. When run in a 'normal' PowerShell window, when all the detected Firefox versions are up-to-date, Update-MozillaFirefox will just check that everything is OK and leave without further ceremony at Step 11 (before trying to determine, whether it is run elevated or not).
Update-MozillaFirefox tries to write several Firefox-related files, namely "firefox_current_versions.json
", "firefox_release_history.json
", "firefox_languages.json
" and "firefox_regions.json
" at Step 7. If the script has advanced to the updating phase, at Step 14 an Install Configuration File (firefox_configuration.ini
) is also written to $path
, where, for instance, the automatic Mozilla Maintenance service is disabled and the default shortcuts are enabled.
If Update-MozillaFirefox is run without elevated rights (but with a working Internet connection) in a machine with an old Firefox version, it will be shown that a Firefox update is needed, but Update-MozillaFirefox will exit at Step 12 before downloading any files. To perform an update with Update-MozillaFirefox, PowerShell has to be run in an elevated window (run as an administrator).
-
If Update-MozillaFirefox is run in an elevated PowerShell window and no Firefox is detected, the script offers the option to install Firefox in the "Admin Corner", where, in contrary to the main autonomous nature of Update-MozillaFirefox, an end-user input is required for selecting the bit-version and the language. In the "Admin Corner", one instance of either 32-bit or 64-bit version in the selected language is installable with Update-MozillaFirefox – the language selection covers over 30 languages.
+
If Update-MozillaFirefox is run in an elevated PowerShell window and no Firefox is detected, the script offers the option to install Firefox in the "Admin Corner" (step 11), where, in contrary to the main autonomous nature of Update-MozillaFirefox, an end-user input is required for selecting the bit-version and the language. In the "Admin Corner", one instance of either 32-bit or 64-bit version in the selected language is installable with Update-MozillaFirefox – the language selection covers over 30 languages.
In the update procedure itself Update-MozillaFirefox downloads a full Firefox installer from Mozilla, which is equal to the type that is already installed on the system (same bit version and language). After writing the Install Configuration File (firefox_configuration.ini
at Step 14) and stopping several Firefox-related processes Update-MozillaFirefox installs the downloaded Firefox on top of the existing Firefox installation, which triggers the in-built update procedure.
The %TEMP%
location represents the current Windows temporary file folder. Please see the Notes-section below, how to determine where the current Windows
- temporary file folder is located. In PowerShell the command $env:temp
displays the temp-folder path.
The %TEMP%
location represents the current Windows temporary file folder. In PowerShell, for instance the command $env:temp
displays the temp-folder path.
firefox_configuration.ini
), please see the Step 14 in the script itself, where the following value is written:The %TEMP%
location represents the current Windows temporary file folder. Please see the Notes-section below, how to determine where the current Windows temporary file folder is located. In PowerShell the command $env:temp
displays the temp-folder path.
The %TEMP%
location represents the current Windows temporary file folder. In PowerShell, for instance the command $env:temp
displays the temp-folder path.
-
-
firefox_configuration.ini
) are altering the system files and seemingly are written somewhere deeper to the innards of Firefox semi-permanently.firefox_configuration.ini
) are altering the system files and seemingly are written somewhere deeper to the innards of Mozilla Firefox semi-permanently.