Customize and deploy Adobe Flash Player

A question came into us this week about customizing Adobe Flash Player installations. There certainly is a way to deploy customized Flash Players however it’s not incredibily intuitive. Unlike other Windows Installer (.msi) applications Flash isn’t modified via Transforms files or Windows Installer options.

Before you can deploy Adobe products, you need to enter a license agreement with Adobe. Shawn wrote an article outlining how this can be done. After entering the agreement with Adobe you will receive a link to download the deployable products requested.

/blog/Customizing-Deploying-Adobe-Reader-9-3

Adobe Flash Player looks in the %WINDIR%\System32\Macromed\Flash directory for the file mms.cfg. This file contains (or can contain) configuration settings which vary from disabling Auto Updates to disabling Flash access to the file system or network.

Adobe provides a great reference document detailing Flash Player Administration. The options for your mms.cfg file are located on Page 19.

I decided to disable both the Automatic Update and Flash access to webcams and microphones. Below are the values in my mms.cfg file:

#Disable AutoUpdate
AutoUpdateDisable=true

#Prevent SWF files from accessing Webcams or Microphones
AVHardwareDisable=true

As I need to perform a custom action AFTER the install I decided to wrap the installation up in a CMD file. Below are the contents of my InstallFlash.cmd file.


\\scranton\deploy\Adobe\FlashPlayer\install_flash_player_10_active_x.msi /quiet /norestart IF %ERRORLEVEL% == 0 goto MMS
exit %ERRORLEVEL%
:MMS
IF EXIST %WINDIR%\System32\Macromed\Flash (
    copy /Y \\scranton\deploy\Adobe\FlashPlayer\mms.cfg %WINDIR%\System32\Macromed\Flash
) ELSE (
    mkdir %windir%\System32\Macromed\Flash
    copy /Y \\scranton\deploy\Adobe\FlashPlayer\mms.cfg %WINDIR%\System32\Macromed\Flash
)
exit %ERRORLEVEL%

Here is a screenshot of the deployment summary in PDQ Deploy.

PDQ Deploy Summary

The deployment runs remarkably fast (less than 20 seconds in my different deployments).

PDQ Deployment Status


Use PDQ Deploy. It’s free. It’s fully functional. It kicks copious amounts of ass.

Follow me on twitter @ShaneCorellian