Flash player 17 install script .bat or .vbs

Hi I am looking everywhere for a script to install Flash player .msi using bat or vbs script

I have found others that install older versions of Flash but they look for 32bit and 64bit msi files.

Adobe have changed there MSI files to contain both 32bit and 64bit in the one msi  so these scripts are obsolete

could any one help me with a new script thanks
paddy086Asked:
Who is Participating?
 
ChrisCommented:
Pretty simplistic but will do the job. Checks to see if it's already installed first. Please bear in mind that you'll need to change the MSI product codes if you use this for anything except 17.0.0.134. MSIs also need to be in the same folder as the script.

@echo off

Title Flash Player Installation

:ActiveX

reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{8C901387-B304-404D-93C0-E2E0C2D53D90}"
if %errorlevel% == 0 goto Plugin

reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{8C901387-B304-404D-93C0-E2E0C2D53D90}"
if %errorlevel% == 0 goto Plugin


cls
echo Installing Flash Player 17.0.0.134 ActiveX, Please Wait...

msiexec /i "%~dp0\install_flash_player_17_active_x.msi" /passive


:Plugin

reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{F22C3C05-B1D9-47FF-AA17-4F9DCBFE850F}"
if %errorlevel% == 0 goto end

reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{F22C3C05-B1D9-47FF-AA17-4F9DCBFE850F}"
if %errorlevel% == 0 goto end


cls
echo Installing Flash Player 17.0.0.134 ActiveX, Please Wait...

msiexec /i "%~dp0\install_flash_player_17_plugin.msi" /passive


:end

Open in new window

0
 
paddy086Author Commented:
Hi Chris

Thanks for the replay I am using 17.0.0.134 the script runs and it looks like the adobe is installing but flash player 16 is still installed and when I go to add and remove version 16 is still installed and 17 is not .
0
 
ChrisCommented:
Usually, the Flash MSIs will remove any older versions before installing. If this isn't happening then I can only assume the PC in question is having problems uninstalling the old version. Could you try manually uninstalling and see if you get any error messages?
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
paddy086Author Commented:
Hi Chris

I looks like the script and flash file need to be on the local pc to run and install
I have my java script on a mapped drive and it runs fine. would there be anything I can do to get it to work from a mapped drive

thanks
0
 
ChrisCommented:
Difficult to know exactly how to get it to work without knowing your setup. Are you on a domain or is this just a mapped drive on a workgroup computer?

Are you running the script as administrator as this can often cause scripts to fail to find the mapped drive. It's best, if possible to run from a UNC path.
0
 
paddy086Author Commented:
Hi Chris
It's on the domain controller I have a script folder that is enabled for admin full access and all sub files and folders are full access I run a Java uninstall and install from this path and it works.
When I run the flash script it starts and says its install flash and please do not open IE browser during this process a flash install box opens up and looks like it compleats but it dose not install. If I copy the flash folder to the local pc and runs the script if dose the same seems to take longer but it dose install flash.
0
 
paddy086Author Commented:
Hi Chris
I have also run the script using the UNC

\\titan\scripts\flash\flashinstall.bat
0
 
ChrisCommented:
Remove @echo off from the very start of the script, add a pause to the end, rerun and paste the output here for me.

Doesn't make any sense why this wouldn't work over the network.
0
 
paddy086Author Commented:
Hi Chris sorry about all this but thanks for your continued help.

I noticed an error message but it kept going off the screen so I added a few more pause to the script. it looks like the issue is to do with the uninstall of the reg files.

here is the script messages.

C:\Windows\system32>Title Flash Player Installation

C:\Windows\system32>reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft
\Windows\CurrentVersion\Uninstall\{8C901387-B304-404D-93C0-E2E0C2D53D90}"
ERROR: The system was unable to find the specified registry key or value.

C:\Windows\system32>if 1 == 0 goto Plugin

C:\Windows\system32>pause
Press any key to continue . . .



C:\Windows\system32>reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Cur
rentVersion\Uninstall\{8C901387-B304-404D-93C0-E2E0C2D53D90}"
ERROR: The system was unable to find the specified registry key or value.

C:\Windows\system32>if 1 == 0 goto Plugin

C:\Windows\system32>pause
Press any key to continue . . .




C:\Windows\system32>echo Installing Flash Player 17.0.0.134 ActiveX, Please Wait
...
Installing Flash Player 17.0.0.134 ActiveX, Please Wait...

C:\Windows\system32>msiexec /i "\\titan\Scripts1\flash1\\install_flash_player_17
_active_x.msi" /passive



C:\Windows\system32>reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft
\Windows\CurrentVersion\Uninstall\{F22C3C05-B1D9-47FF-AA17-4F9DCBFE850F}"
ERROR: The system was unable to find the specified registry key or value.

C:\Windows\system32>if 1 == 0 goto end

C:\Windows\system32>pause
Press any key to continue . . .


C:\Windows\system32>reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Cur
rentVersion\Uninstall\{F22C3C05-B1D9-47FF-AA17-4F9DCBFE850F}"
ERROR: The system was unable to find the specified registry key or value.

C:\Windows\system32>if 1 == 0 goto end

C:\Windows\system32>pause
Press any key to continue . . .


C:\Windows\system32>echo Installing Flash Player 17.0.0.134 ActiveX, Please Wait
...
Installing Flash Player 17.0.0.134 ActiveX, Please Wait...

C:\Windows\system32>msiexec /i "\\titan\Scripts1\flash1\\install_flash_player_17
_plugin.msi" /passive

C:\Windows\system32>pause
Press any key to continue . . .



Script ends here 

Open in new window


And here is the script file you game me with the added pauses
Title Flash Player Installation

:ActiveX

reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{8C901387-B304-404D-93C0-E2E0C2D53D90}"
if %errorlevel% == 0 goto Plugin
pause

reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{8C901387-B304-404D-93C0-E2E0C2D53D90}"
if %errorlevel% == 0 goto Plugin
pause

cls
echo Installing Flash Player 17.0.0.134 ActiveX, Please Wait...

msiexec /i "%~dp0\install_flash_player_17_active_x.msi" /passive


:Plugin

reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{F22C3C05-B1D9-47FF-AA17-4F9DCBFE850F}"
if %errorlevel% == 0 goto end
pause

reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{F22C3C05-B1D9-47FF-AA17-4F9DCBFE850F}"
if %errorlevel% == 0 goto end
pause


cls
echo Installing Flash Player 17.0.0.134 ActiveX, Please Wait...

msiexec /i "%~dp0\install_flash_player_17_plugin.msi" /passive

pause
:end

Open in new window

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.