Skip to content

Instantly share code, notes, and snippets.

@karlhorky
Created August 25, 2012 13:36
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save karlhorky/3465761 to your computer and use it in GitHub Desktop.
Save karlhorky/3465761 to your computer and use it in GitHub Desktop.
Trigger Adobe Flash Player Auto-Update mechanism on Windows
:: On-Demand Flash Autoupdate
:: Author: Karl Horky
:: Date: 22 June 2012
:: Version: 0.2
:: Homepage: http://www.karlhorky.com/2012/06/manually-run-autoupdate-for-adobe-flash.html
@echo off
cd C:\Windows\System32\Macromed\Flash\
if exist *ActiveX.exe (
echo Updating Flash Player Plugin for Internet Explorer
for /f "tokens=*" %%f in ('dir /b *ActiveX.exe') do set last=%%f
)
if defined last (
%last% -update plugin
set last=
echo Complete!
)
if exist *Plugin.exe (
echo Updating Flash Player Plugin for Firefox, Safari, Opera
for /f "tokens=*" %%f in ('dir /b *Plugin.exe') do set last=%%f
)
if defined last (
%last% -update plugin
echo Complete!
)
pause
/Applications/Utilities/Adobe\ Flash\ Player\ Install\ Manager.app/Contents/MacOS/Adobe\ Flash\ Player\ Install\ Manager -update plugin
C:\Windows\System32\Macromed\Flash\FlashUtil<version number>ActiveX.exe -update plugin
C:\Windows\System32\Macromed\Flash\FlashUtil<version number>Plugin.exe -update plugin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment