Link to home
Start Free TrialLog in
Avatar of paddy086
paddy086Flag for Ireland

asked on

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
ASKER CERTIFIED SOLUTION
Avatar of Chris
Chris
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of paddy086

ASKER

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 .
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?
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
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.
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.
Hi Chris
I have also run the script using the UNC

\\titan\scripts\flash\flashinstall.bat
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.
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