Difference between revisions of "Flash Player"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
(Added links to Flash 10 installers and Adobe licencing page)
Line 1: Line 1:
This is a silent installer for Adobe Flash Player.
+
This is a silent installer for Adobe Flash Player. To use these installers on your network, you will need to [http://www.adobe.com/products/players/fpsh_distribution1.html get a licence] but this is a simple free process.
  
 
== Adobe Flash Player 10 for Internet Explorer with Win64bit check==
 
== Adobe Flash Player 10 for Internet Explorer with Win64bit check==
 +
Download installer file [http://fpdownload.adobe.com/get/flashplayer/current/install_flash_player_ax.exe here].
  
 
<source lang="xml">
 
<source lang="xml">
Line 32: Line 33:
  
 
== Adobe Flash Player 10 for Firefox/Opera with Win64bit check==
 
== Adobe Flash Player 10 for Firefox/Opera with Win64bit check==
 +
Download installer file [http://fpdownload.adobe.com/get/flashplayer/current/install_flash_player.exe here].
  
 
<source lang="xml">
 
<source lang="xml">

Revision as of 08:45, 14 September 2009

This is a silent installer for Adobe Flash Player. To use these installers on your network, you will need to get a licence but this is a simple free process.

Adobe Flash Player 10 for Internet Explorer with Win64bit check

Download installer file here.

<package 
    id="flashplayer_ie"
    name="Adobe Flash Player 10 for IE"
    revision="20090725"
    reboot="false"
    priority="10">
        
    <check type="logical" condition="or">
        <check type="logical" condition="and">
            <check type="uninstall" condition="exists" path="Adobe Flash Player 10 ActiveX" />
            <check type="file" condition="versionequalto" path="%SYSTEMROOT%\system32\Macromed\Flash\Flash10c.ocx" value="10.0.32.18"/>
        </check>
        <check type="logical" condition="and">
            <check type="uninstall" condition="exists" path="Adobe Flash Player 10 ActiveX" />
            <check type="file" condition="versionequalto" path="%SYSTEMROOT%\SysWOW64\Macromed\Flash\Flash10c.ocx" value="10.0.32.18"/>
        </check>
    </check>

    <install cmd='%SOFTWARE%\flash\install_flash_player_ax.exe /S' />
        
    <upgrade cmd='%SOFTWARE%\flash\install_flash_player_ax.exe /S' />
    
    <remove cmd='%COMSPEC% /C if exist "%SYSTEMROOT%\system32\Macromed\Flash\uninstall_activeX.exe" "%SYSTEMROOT%\system32\Macromed\Flash\uninstall_activeX.exe" /S'/>
    <remove cmd='%COMSPEC% /C if exist "%SYSTEMROOT%\SysWOW64\Macromed\Flash\uninstall_activeX.exe" "%SYSTEMROOT%\SysWOW64\Macromed\Flash\uninstall_activeX.exe" /S'/>
</package>

Adobe Flash Player 10 for Firefox/Opera with Win64bit check

Download installer file here.

<package 
     id="flashplayer_mozilla"
     name="Adobe Flash Player 10 for Mozilla/Opera"
     revision="20090725"
     reboot="false"
     priority="10">
        
    <check type="logical" condition="or">
        <check type="logical" condition="and">
            <check type="uninstall" condition="exists" path="Adobe Flash Player 10 Plugin" />
            <check type="file" condition="versionequalto" path="%SYSTEMROOT%\system32\Macromed\Flash\NPSWF32.dll" value="10.0.32.18" />
        </check>
        <check type="logical" condition="and">
            <check type="uninstall" condition="exists" path="Adobe Flash Player 10 Plugin" />
            <check type="file" condition="versionequalto" path="%SYSTEMROOT%\SysWOW64\Macromed\Flash\NPSWF32.dll" value="10.0.32.18" />
        </check>
    </check>
        
    <install cmd='%SOFTWARE%\flash\install_flash_player.exe /S' />
    
    <upgrade cmd='%SOFTWARE%\flash\install_flash_player.exe /S' />
        
    <remove cmd='%COMSPEC% /C if exist "%SYSTEMROOT%\system32\Macromed\Flash\uninstall_plugin.exe" "%SYSTEMROOT%\system32\Macromed\Flash\uninstall_plugin.exe" /S'/>
    <remove cmd='%COMSPEC% /C if exist "%SYSTEMROOT%\SysWOW64\Macromed\Flash\uninstall_plugin.exe" "%SYSTEMROOT%\SysWOW64\Macromed\Flash\uninstall_plugin.exe" /S'/>
</package>

Disable Automatic Update dialog in Adobe Flash Player

It seems that Flash checks in to the mother ship Adobe at regular bases to check if there is an update available. And if so, it presents the user with a dialog asking if he wants to upgrade Flash to the latest version, which is what we don't want when the software is managed by WPKG. To prevent this from happening, you can do the following:

  • create a file named "mms.cfg" (if you don't already have it for other flash settings)
  • add an entry in this file: AutoUpdateDisable=1
  • this file now has to be added to the FlashPlayer installation directory during the install of the package. You can do this by copying the file into that directory. Add the next lines to your Flash package:

Right after the installation:

<install cmd='%COMSPEC% /c copy /y /v "%SOFTWARE%\FlashPlayer\mms.cfg" %WINDIR%\system32\Macromed\Flash\' />

Right after the upgrade:

<upgrade cmd='%COMSPEC% /c copy /y /v "%SOFTWARE%\FlashPlayer\mms.cfg" %WINDIR%\system32\Macromed\Flash\' />

Right before the uninstall:

<remove cmd='%COMSPEC% /c del /s /q "%WINDIR%\system32\Macromed\Flash\mms.cfg"' >
  <exit code="0" />
  <exit code="1" />  <!-- if file does not exist -->
</remove>

Or you could create a separate package for this setting.

This file will prevent current and older versions of Flash from auto-updating.

Older versions

Adobe Flash Player 9.0.246.0 for Firefox

You are encouraged to upgrade for security reasons: http://www.adobe.com/support/security/bulletins/apsb08-11.html and the click-jacking vulnerability are both addressed in this update. It can be downloaded from here.

Installer packaged as an executable, installs as a plugin. Sometimes it is upgraded only on the second run of wpkg, it must be a timing issue between installing over previous version and checking conditions.

<package id="flashplayerfirefox" name="Adobe Flash Player for Firefox" revision="1" reboot="false" priority="0">
  <depends package-id="firefox"/>
  <check type="file" condition="versiongreaterorequal" path="%WINDIR%\system32\Macromed\Flash\NPSWF32.dll" value="9.0.246.0"/>
  <install cmd='%SOFTWARE%\Flash\install_flash_player.exe /S' />
  <upgrade cmd='%SOFTWARE%\Flash\install_flash_player.exe /S' />
  <remove cmd='%WINDIR%\system32\Macromed\Flash\uninstall_plugin.exe /S'/>
</package>

It's good to kill Firefox application process before installing, since the installer won't work with browser running. To do this add to code:

<install cmd="taskkill /F /IM Firefox.exe">
            <exit code="0" />
            <exit code="128" />
</install>

And of course:

<upgrade cmd="taskkill /F /IM Firefox.exe">
            <exit code="0" />
            <exit code="128" />
</upgrade>

Adobe Flash Player 9.0.246.0 for Internet Explorer

The same reasons for upgrading apply as for the plugin version above, and it can be downloaded from the same place. It is packaged as a .exe file, so presumably has the same installation/removal/upgrade syntax as the plugin version above, but the following code has not been tested.

<package id="flashplayeractivex" name="ActiveX Flash Player" revision="20090730" reboot="false" priority="0">
  <check type="file" condition="versionequalto" path="%SYSTEMROOT%\system32\Macromed\Flash\Flash9c.ocx" value="9.0.246.0"/>
  <install cmd='%SOFTWARE%\Flash\install_flash_player_ax.exe /S' />
  <upgrade cmd='%SOFTWARE%\Flash\install_flash_player_ax.exe /S' />
  <remove cmd='%COMSPEC% /C if exist "%SYSTEMROOT%\system32\Macromed\Flash\uninstall_activeX.exe" "%SYSTEMROOT%\system32\Macromed\Flash\uninstall_activeX.exe" /S'/>
</package>