Difference between revisions of "Flash Player"
(→Adobe Flash Player 10 for Firefox/Opera with Win64bit check: easier rule for 64bit) |
(→Adobe Flash Player 10 for Internet Explorer with Win64bit check) |
||
Line 8: | Line 8: | ||
id="flashplayer_ie" | id="flashplayer_ie" | ||
name="Adobe Flash Player 10 for IE" | name="Adobe Flash Player 10 for IE" | ||
− | revision=" | + | revision="1004234" |
reboot="false" | reboot="false" | ||
priority="10"> | priority="10"> | ||
Line 16: | Line 16: | ||
<check type="logical" condition="or"> | <check type="logical" condition="or"> | ||
− | <check type="file" condition="versionequalto" path="%SYSTEMROOT%\system32\Macromed\Flash\ | + | <check type="file" condition="versionequalto" path="%SYSTEMROOT%\system32\Macromed\Flash\Flash10d.ocx" value="10.0.42.34"/> |
− | <check type="file" condition="versionequalto" path="%SYSTEMROOT%\SysWOW64\Macromed\Flash\ | + | <check type="file" condition="versionequalto" path="%SYSTEMROOT%\SysWOW64\Macromed\Flash\Flash10d.ocx" value="10.0.42.34"/> |
</check> | </check> | ||
Revision as of 13:53, 14 December 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.
Contents
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="1004234"
reboot="false"
priority="10">
<check type="uninstall" condition="exists" path="Adobe Flash Player 10 ActiveX" />
<check type="logical" condition="or">
<check type="file" condition="versionequalto" path="%SYSTEMROOT%\system32\Macromed\Flash\Flash10d.ocx" value="10.0.42.34"/>
<check type="file" condition="versionequalto" path="%SYSTEMROOT%\SysWOW64\Macromed\Flash\Flash10d.ocx" value="10.0.42.34"/>
</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="uninstall" condition="exists" path="Adobe Flash Player 10 Plugin" />
<check type="logical" condition="or">
<check type="file" condition="versionequalto" path="%SYSTEMROOT%\system32\Macromed\Flash\NPSWF32.dll" value="10.0.32.18" />
<check type="file" condition="versionequalto" path="%SYSTEMROOT%\SysWOW64\Macromed\Flash\NPSWF32.dll" value="10.0.32.18" />
</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
Flash Player automatically checks with adobe.com to see if an updated version is available and if there is it presents a dialog prompting the user to upgrade. To disable this update check and prompting you can do the following:
- if it doesn't already exist, create a directory %WINDIR%\system32\Macromed\Flash\
- if it doesn't already exist, create a file there called "mms.cfg" (this file can also be used to deploy other settings)
- add an entry in this file: AutoUpdateDisable=1
This configuration can be performed by WPKG using the following:
<install cmd='%COMSPEC% /c copy /y /v "%SOFTWARE%\FlashPlayer\mms.cfg" %WINDIR%\system32\Macromed\Flash\' />
<upgrade cmd='%COMSPEC% /c copy /y /v "%SOFTWARE%\FlashPlayer\mms.cfg" %WINDIR%\system32\Macromed\Flash\' />
<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>
Either you can deploy this using WPKG as part of the Flash Player installer, or create a separate package for this setting which would allow you to deploy updates to this file separately to the Flash Player itself.
This file will prevent current and older versions of Flash from auto-updating.
Older versions
Adobe Flash Player 9.0.246.0 for Firefox
Note: this version is out-of-date.
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
Note: this version is out-of-date.
Presumably the Internet Explorer version 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>