Thursday, June 12, 2014

Uninstall and re-install latest version of flash player with a script

Updated 2/8/2015

I have created a simple set of commands that can be ran that will do the following which is based off the official Adobe method located here:

1) Full uninstall of ANY Adobe Flash player versions install. That is for IE or a plugin based browser such as Firefox.

2) Removes all traces of anything Adobe Flash related from the following folders:

    a) C:\Windows\System32\Macromed\
    b) C:\Users\%username%\AppData\Roaming\Adobe\Flash Player
    c) C:\Users\%username%\AppData\Roaming\Macromedia\Flash Player
    d) C:\Windows\SysWOW64\Macromed\Flash

3) Re-install your flash player versions.

I have written this in BAT file format b/c some people esp on the Firefox Forums are overly paranoid about exe, and it has become clear that some do not understand bat files either... I think I have a good enough following to prove i don't write harmful code.

I have greatly simplified this process to uninstall all flash player versions, clean up flash player files, and re-install the latest versions.

5) Go here and down load a bat file(Clean_Flash.cmd ) and place it in any folder.

6) Run as admin and let the script work, takes about a minute or two at the most on slower connections and/or systems.

That is all there is to it, no more guessing games for flash anymore.

Please make sure all programs are closed.

A note about the flash player versions:
The link is ONLY valid for Flash player versions 16.x.x.xxx . Once version 17 comes out the download file reference will have to be changed thought the script.

Here is a direct link to the msi files.

http://www.adobe.com/products/flashplayer/distribution3.html

There is also a way to code this and turn it into an exe with windows prompts by writing the code in AutoIT
The Source Code for the exe is located here:

https://github.com/Carm01/auto-flash-player-updater-v14.au3

The Source code will have to be modified for version 16 , or any future versions once 16 becomes 17, 18, etc.... Other than changing the file versions within the script it will stay the same.
SIMPLY PUT: install_flash_player_14_active_x.msi will become
install_flash_player_15_active_x.msi, or
install_flash_player_16_active_x.msi or whatever and when a newer version comes out in that series. Downloading and installing the newest msi from Adobe ALWAYS gives you the most up to date Adobe Flash version in that series.

The only reference that will change is: install_flash_player_16_active_x.msi in the coding for either script.


ALSO:
I have some additional possible solutions for flash player crashing in Firefox if the Mozilla Forums prove useless as do for many for this issue.

You can check them out here: http://firefoxcrash.blogspot.com/2013/12/firefox-crashes-adobe-flash-player.html

Some other Firefox solutions are here: http://firefoxcrash.blogspot.com/



Cheers