There are actually two versions of the Flash Player available - one for ActiveX browsers (Internet Explorer) and one for Plug-In browsers (Chrome, Firefox, etc.). Both versions should be packaged up.

ActiveX Version

Go to the private URL that you have been given by Adobe to download the Flash installers for redistribution. Download the MSI installer for Internet Explorer and save it into a folder for your flat files. If you need to sign up to redistribute Flash, visit this page.

InstallActiveX.cmd

Copy the InstallActiveX.cmd from a prior installation folder or save a copy from this page as InstallActiveX.cmd and then make the following changes.

  • Replace all instances of SoftwareName with Adobe Flash Player.
  • Replace all instances of Version where it is used as part of an echo statement or REG ADD statement with A.B.C.D ActiveX. Get A.B.C.D from the web page where you downloaded the MSI file.
  • Insert the following code right above the line that says:
    echo Checking for current version of Adobe Flash Player...

echo Checking for applicability...
set OSMAJ=1
set OSVER=1.1
for /f "tokens=1,2 delims=. skip=1" %%i in ('wmic os get version') do call :OSVERSION %%i %%j
if %OSVER% GEQ 6.2 GOTO :Configure
if %OSMAJ% GEQ 10 GOTO :Configure
goto :CheckVersion
:OSVERSION
if .%1.==.. GOTO :EOF
set OSMAJ=%1
set OSVER=%1.%2
echo.  Operating system version is %OSVER%
GOTO :EOF

:CheckVersion
echo.
  • Change the CheckVersion.vbs script name to CheckVersionActiveX.vbs and then ensure that the /MinVer value is correct.
  • In the :UninstallPrevious section, use the following commands to uninstall previous versions of the Flash Player:
taskkill /im iexplore.exe /f 1>nul
wmic product where 'Name like "Adobe Flash Player % ActiveX"' call Uninstall /NoInteractive
  • In the :Install section, use the following command to install Flash Player:
msiexec /i "%~dp0install_flash_player_18_active_x.msi" /qb!- /norestart ALLUSERS=1 ISCHECKFORPRODUCTUPDATES=0 AgreeToLicense=YES
  • In the :Configure section, add the following lines:
if .%PROCESSOR_ARCHITECTURE%.==.AMD64. copy /y "%~dp0mms.cfg" "%windir%\syswow64\macromed\flash" 1>nul
copy /y "%~dp0mms.cfg" "%windir%\system32\macromed\flash" 1>nul
  • In the :MarkupRegistry section, double-check that the key is there to cover the version of Flash Player being installed.

CheckVersionActiveX.vbs

Copy the CheckVersionActiveX.vbs script from a prior installation folder or save a copy from this page, using the Reg Key Version first half, as CheckVersionActiveX.vbs and then make the following changes.

  • Set the following variables:
Const Base32 = "SOFTWARE\Macromedia\FlashPlayerActiveX"
Const Base64 = "SOFTWARE\Wow6432Node\Macromedia\FlashPlayerActiveX"
Const VersionValue = "Version"

MMS.CFG

Copy the following into a text file and save it as MMS.CFG:

AutoUpdateDisable=1

That's it for the ActiveX version. Essentially, the double-check is to prevent installation on Windows 8.0, 8.1, and 10.0 systems (which Microsoft manages via Windows Update). It is also best to use OS versions in targeting the deployment in your software distribution system, but this prevents the manual execution of the script from installing on an incorrect OS.

Plugin Version

Go to the private URL that you have been given by Adobe to download the Flash installers for redistribution. Download the MSI installer for plugin-based browsers and save it into a folder for your flat files. If you need to sign up to redistribute Flash, visit this page.

InstallPlugin.cmd

Copy the InstallPlugIn.cmd from a prior installation folder or save a copy from this page as InstallPlugin.cmd and then make the following changes.

  • Replace all instances of SoftwareName with Adobe Flash Player.
  • Replace all instances of Version with A.B.C.D PlugIn. Get A.B.C.D from the web page where you downloaded the MSI file.
  • Change the CheckVersion.vbs script name to CheckVersionPlugIn.vbs and then ensure that the /MinVer value is correct.
  • In the :UninstallPrevious section, use the following commands to uninstall previous versions of the Flash Player:
taskkill /im chrome.exe /f 1>nul
taskkill /im firefox.exe /f 1>nul
wmic product where 'Name like "Adobe Flash Player % NPAPI"' call Uninstall /NoInteractive
  • In the :Install section, use the following command to install Flash Player:
msiexec /i "%~dp0install_flash_player_18_plugin.msi" /qb!- /norestart ALLUSERS=1 ISCHECKFORPRODUCTUPDATES=0 AgreeToLicense=YES
  • In the :Configure section, add the following lines:
if .%PROCESSOR_ARCHITECTURE%.==.AMD64. copy /y "%~dp0mms.cfg" "%windir%\syswow64\macromed\flash" 1>nul
copy /y "%~dp0mms.cfg" "%windir%\system32\macromed\flash" 1>nul
  • In the :MarkupRegistry section, double-check that the key is there to cover the version of Flash Player being installed.

CheckVersionPlugIn.vbs

Copy the CheckVersionPlugIn.vbs script from a prior installation folder or save a copy from this page, use the Reg Key Version for the first half, as CheckVersionPlugIn.vbs and then make the following changes.

  • Set the following variables:
Const Base32 = "SOFTWARE\Macromedia\FlashPlayerPlugin"
Const Base64 = "SOFTWARE\Wow6432Node\Macromedia\FlashPlayerPlugin"
Const VersionValue = "Version"

That's it. This one should be deployed to all operating system versions (assuming that you still want to have Flash around!).

So, to summarize:

  • Advertise InstallActiveX.cmd to users still running Windows 7 or earlier.
  • Copy InstallActiveX.cmd to UpdateActiveX.cmd and make the change noted for Update.cmd type files on the Install.cmd and Update.cmd page. Advertise this to all Windows 7 computers and force it to run.
  • Advertise InstallPlugin.cmd to users of any operating system.
  • Copy InstallPlugin.cmd to UpdatePlugin.cmd and make the same change. Advertise this to all computers and force it to run.

For Intune, you probably only need to encapsulate the InstallPlugin.cmd and UpdatePlugin.cmd versions as EXE, since you're most likely only managing Windows 8.0 or newer in Intune (right?).