How can I automatically update Flash Player whenever a new version is released?

Solution 1:

Perhaps the updater only applies updates in the 11.6.x range?

You could always use direct links to the installers, which I find to be more reliable: ActiveX; Plugin.

Solution 2:

With this .bat file it's will try automatically update or install flash player for Internet Explorer, Firefox (SeaMonkey and etc), Chromium based(Chrome, Opera 15+ and etc):

del install_flash_player.exe
del install_flash_player_ax.exe
del install_flash_player_ppapi.exe
wget http://fpdownload.macromedia.com/pub/flashplayer/latest/help/install_flash_player.exe
wget http://fpdownload.macromedia.com/pub/flashplayer/latest/help/install_flash_player_ax.exe
wget http://fpdownload.macromedia.com/pub/flashplayer/latest/help/install_flash_player_ppapi.exe
install_flash_player.exe -install
install_flash_player_ax.exe -install
install_flash_player_ppapi.exe -install

Required wget you can download here and need put it to same directory where .bat was placed.


A little more advanced example written in Autoit.

Features: Simple check for new version, if here no new version then exit program without download flash player installer. If download installer failed then show message box with error and exit. Hidden command prompt window. Don't need wget.

After install Autoit and Editor. Right click on desktop->New->Autoit Script. Right click on this created file->Edit. Now you should see ScITE window and after line "Add your code below here" add this code:

#NoTrayIcon
#include <WinAPIDiag.au3>
$flashplayerlink="http://fpdownload.macromedia.com/pub/flashplayer/latest/help/install_flash_player.exe"
$flashplayername="install_flash_player.exe"
$flashplayerlinkAX="http://fpdownload.macromedia.com/pub/flashplayer/latest/help/install_flash_player_ax.exe"
$flashplayernameAX="install_flash_player_ax.exe"
updateflashplayer($flashplayerlink,$flashplayername)
updateflashplayer($flashplayerlinkAX,$flashplayernameAX)

$flashplayerlinkPPAPI="http://fpdownload.macromedia.com/pub/flashplayer/latest/help/install_flash_player_ppapi.exe"
$flashplayernamePPAPI="install_flash_player_ppapi.exe"
updateflashplayer($flashplayerlinkPPAPI,$flashplayernamePPAPI)



Func updateflashplayer($link,$fname)
    if FileGetSize($fname)<>InetGetSize($link) then
        InetGet($link,$fname)
        if @error then
            MsgBox(16,"","Error: '"&_WinAPI_GetErrorMessage(@error)&"'"&@CRLF&$fname)
            Exit
        EndIf
        RunWait($fname&" -install","",@SW_HIDE)
    EndIf
EndFunc

Then in SciTE window press Tools->Build or press F7. Now you will get standalone executable in same directory where was Autoit script.

I recommend make new folder(with write-access permission) for this "updater". You can add shortcut to this "updater" to start up also.

Here app for uninstall flash player.