Tuesday, February 19, 2013

Deploying Adobe Flash 11 Windows 7 64 bit

Problem:
I kept getting an error when deploying Adobe Flash 11.X to my Windows 7 64 bit workstations.
The error "This file does not have a program associated with it for performing this action. ..." Would pop up at the end of the installation and would cause the deployment task to hang until someone click "OK".


Solution/Deployment Task:
Set compatibility to Windows XP SP3 before installing.

1. Download standalone executables from Adobe.
http://download.macromedia.com/get/flashplayer/current/licensing/win/install_flash_player_11_active_x.exe
http://download.macromedia.com/get/flashplayer/current/licensing/win/install_flash_player_11_plugin.exe

2. Check if browsers are running.
REM Check if browser is running Exit 1
tasklist|find /i "iexplore.exe"
IF %ERRORLEVEL%==0 EXIT 1
tasklist|find /i "firefox.exe"
IF %ERRORLEVEL%==0 EXIT 1
tasklist|find /i "chrome.exe"
IF %ERRORLEVEL%==0 EXIT 1
tasklist|find /i "Safari.exe"
IF %ERRORLEVEL%==0 EXIT 1
EXIT 0
3. Copy install_flash_player_11_plugin.exe, and install_flash_player_11_active_x.exe executables to "C:\Windows\Temp\".

4. Set compatibility to Windows XP SP3 for the executables.
REM Set compatibility install_flash_player_11_plugin.exe
reg.exe Add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers" /v "C:\Windows\Temp\install_flash_player_11_plugin.exe" /d "WINXPSP3" /f
REM Set compatibility install_flash_player_11_active_x.exe
reg.exe Add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers" /v "C:\Windows\Temp\install_flash_player_11_active_x.exe" /d "WINXPSP3" /f
5. Execute the installation.
REM Install install_flash_player_11_plugin.exe
C:\windows\temp\install_flash_player_11_plugin.exe /install
REM Install install_flash_player_11_active_x.exe
C:\Windows\Temp\install_flash_player_11_active_x.exe /install
6. Take out the trash.
REM Delete install_flash_player_11_plugin.exe
DEL "C:\windows\temp\install_flash_player_11_plugin.exe"
REM Delete install_flash_player_11_active_x.exe
DEL "C:\Windows\Temp\install_flash_player_11_active_x.exe"
 

No comments: