OS: | Windows | ||||||||||||||||||||
Type: | A Windows PowerShell script | ||||||||||||||||||||
Language: | Windows PowerShell | ||||||||||||||||||||
Description: | Update-AdobeFlashPlayer downloads a list of the most recent Flash version numbers against which it compares the Flash version numbers found on the system and displays, whether a Flash update is needed or not. If a working Internet connection is not found, Update-AdobeFlashPlayer will exit at an early stage without displaying any info apart from what is found on the system. The actual update process naturally needs elevated rights, but if, however, all detected Flash Players seem to be up-to-date, Update-AdobeFlashPlayer will exit before checking, whether it is run elevated or not. Thus, if Update-AdobeFlashPlayer is run in a up-to-date machine in a "normal" PowerShell window, Update-AdobeFlashPlayer will just check that everything is OK and leave without further ceremony.
If Update-AdobeFlashPlayer is run without elevated rights (but with a working Internet connection) in a machine with old Flash versions, it will be shown that a Flash update is needed, but Update-AdobeFlashPlayer will exit with a fail before actually downloading any files or making any changes to the system. To perform an update with Update-AdobeFlashPlayer, PowerShell has to be run in an elevated window (run as an administrator). If Update-AdobeFlashPlayer is run in an elevated PowerShell window and no Flash is detected, the script offers the option to install one specific version of Flash in two steps in the "Admin Corner", where, in contrary to the main autonomous nature of Update-AdobeFlashPlayer, an end-user input is required. In the update procedure (if old Flash has been found and Update-AdobeFlashPlayer is run with administrative rights) Update-AdobeFlashPlayer downloads the Flash uninstaller from Adobe and (a) full Flash installer(s) for the type(s) of Flash Player(s) from Adobe, which it has deemed to be outdated and after stopping several Flash-related processes uninstalls the outdated Flash version(s) and installs the downloaded Flash Player(s). Adobe Flash Player is configured by creating a backup of the exisiting configuration file (mms.cfg) and overwriting new settings to the configuration file. After the installation a web page in the default browser is opened for verifying that the Flash Player has been installed correctly. The downloaded files are purged from the hard drive after a while. This script is based on Bob Ross' PowerShell script "Automated Adobe Flash Player Maintenance PowerScript for Public Computing Environment". |
||||||||||||||||||||
Homepage: | https://github.com/auberginehill/update-adobe-flash-player
Short URL: http://tinyurl.com/gve9y8s |
||||||||||||||||||||
Version: | 1.3 | ||||||||||||||||||||
Sources: |
|
||||||||||||||||||||
Downloads: | For instance Update-AdobeFlashPlayer.ps1. Or everything as a .zip-file. |
➡️ |
|
||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Configuration file:
"Original" file, which is created when the script tries to update something for the first time:
"Backup" file, which is created when the script tries to update something for the second time and which gets overwritten in each successive update cycle:
The
Most of the settings above may render some web pages broken. Lines marked with # are written only if the symbol # is removed from the beginning of the appropriate line inside the source code section (please see the Step 6 in the script itself, about at line ~1111). For a comprehensive list of available settings and a more detailed description of the values above, please see the Adobe Flash Player Administration Guide.
|
|
|
|
📖 | To open this code in Windows PowerShell, for instance: | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Find a bug? Have a feature request? Here is how you can contribute to this project:
Bugs: | Submit bugs and help us verify fixes. | |
Feature Requests: | Feature request can be submitted by creating an Issue. | |
Edit Source Files: | Submit pull requests for bug fixes and features and discuss existing proposals. |
🌐 | Script Homepage |
---|---|
Bob Ross: Automated Adobe Flash Player Maintenance PowerScript for Public Computing Environment (or one of the archive.org versions) | |
ps1: Test Internet connection (or one of the archive.org versions) | |
Tobias Weltner: PowerTips Monthly vol 8 January 2014 (or one of the archive.org versions) | |
alejandro5042: How to run exe with/without elevated privileges from PowerShell | |
Raven Hunter: A little powershell help, Flash Version Query | |
Kreloc: Get current versions of Adobe Products | |
chocolatey: Flash Player Plugin | |
JaredPar and Matthew Pirocchi: What's the best way to determine the location of the current PowerShell script? | |
lamaar75: Creating a Menu (or one of the archive.org versions) | |
Perfect Progress Bars for PowerShell | |
Adding a Simple Menu to a Windows PowerShell Script | |
Uninstall method of the Win32_Product class | |
ASCII Art: http://www.figlet.org/ and ASCII Art Text Generator |