Crew Two

Adobe Flash Player PPAPI Plugin 28.0.0.137

Adobe Flash Player PPAPI Plugin
Version 28.0.0.137

SUMMARY 

This document outlines the process for packaging Adobe Flash Player PPAPI Plugin (for Chromium-based browsers – EG. Chrome, Opera).

Obtain Package Source

Download the MSI installer from adobe.com.
You must have an Adobe login and have applied for a distribution license. 

Suppress Automatic Updates

To suppress Automatic Updates, we must create a Transform (.mst) file. This is the industry-standard method of altering the installation parameters without interfering with the supplied proprietary MSI installer. We will ultimately use both files together during the install.

 

Obtain Packaging Tool

To create a Transform file we will need a Packaging Tool. Orca is free and can be downloaded from technipages.com.
Install as per defaults. 

Create Transform File

To create our Transform file and suppress automatic updates, open your MSI file with Orca.
Click Transform and New Transform.
Select the Custom Action Table. We will edit NewCustomAction1.
Change the target command: 

Old: -install -msi -prev [PREVIOUS_VERSION]
New: -install -msi -au 2

Click Transform and Generate Transform.
Give your new transform file a name and click Save.
In this example: FlashPPAPI.mst
Close Orca. 

Notes 

What this change does in reality is create the following text file during the install:

C:\Windows\SysWOW64\Macromed\Flash\mms.cfg

Which contains the following contents: 

SilentAutoUpdateEnable=0
AutoUpdateDisable=1

This is what suppresses the updates.

Create Scripts for Install and Uninstall

Create or update a set of text-based scripts as per below with the contents provided.

Install

The installer is a Powershell script. 

Install.ps1

# Powershell script to install Adobe Flash PPAPI plugin 28.0.0.137 for Chrome 
# Created 16/01/2018 | cru2.io
 

# Set Variables 
$CurrentPath = Split-Path -Parent $MyInvocation.MyCommand.Definition 
 

# UnInstall all versions 
$uninst = Get-WmiObject -Class win32_product | where { $_.Name -like “*PPAPI*”} 

If ($uninst -ne $null)
    {
    Foreach ($app in $uninst)
        {Start-Process -FilePath msiexec.exe  -ArgumentList “/x $($app.IdentifyingNumber) /qn REBOOT=R” -Wait -PassThru -NoNewWindow -ErrorAction SilentlyContinue -WarningAction SilentlyContinue | Out-Null}
    } 

# Install
Start-Process -FilePath msiexec.exe -ArgumentList “/i `”$CurrentPath\install_flash_player_28_ppapi.msi`” TRANSFORMS=`”$CurrentPath\FlashPPAPI.mst`” REBOOT=R ALLUSERS=2 /qn” -Wait -PassThru -NoNewWindow -ErrorAction SilentlyContinue -WarningAction SilentlyContinue | Out-Null

Uninstall

The installer is a Powershell script. 

unInstall.ps1 

# Powershell script to uninstall Adobe Flash PPAPI plugin for Chrome
# Created 22/11/2017 | cru2.io


# Set Variables
$CurrentPath = Split-Path -Parent $MyInvocation.MyCommand.Definition


# UnInstall all versions
$uninst = Get-WmiObject -Class win32_product | where { $_.Name -like “*PPAPI*”}

If ($uninst -ne $null)
    {
    ForEach ($app in $uninst)
        {Start-Process -FilePath msiexec.exe  -ArgumentList “/x $($app.IdentifyingNumber) /qn REBOOT=R” -Wait -PassThru -NoNewWindow -ErrorAction SilentlyContinue -WarningAction SilentlyContinue | Out-Null}
    }

Deployment Info

This can also be found in a text file in the package directory. 

deploymentInfo.txt

Adobe Flash PPAPI plugin for Chrome
28.0.0.137
Windows\System32\Macromed\Flash

{3371DF75-3590-4993-A5D9-17F078B7DA16}

 

 

About: nick