[wpkg-users] Flash 16 ActiveX Plugin

Stefan Pendl stefan.pendl.71 at gmail.com
Thu Dec 25 14:49:56 CET 2014


Am 24.12.2014 um 20:10 schrieb Will Aoki:
> On Wed, Dec 24, 2014 at 03:35:49PM -0300, Jáder Marasca wrote:
>> 1) why there are two extra variables:
>>       <variable name="NPAPI_VERSION"                value="16.0.0.235" />
>>        <variable name="ACTIVEX_VERSION"          value="16.0.0.235">
> It's because in the past the NPAPI and ActiveX have been released with
> different versions.  To the best of my knowledge, the last time Adobe
> did that was 14.0.0.176 (ActiveX-only) / 14.0.0.179 (NPAPI-only).
>
>> 2) Why we need to rename downloaded files if "PKG_SOURCE" already use a
>> different directory to hold all files of that version ?
> I was wondering the same thing. For what it's worth, I put Flash Player
> installers into separate %SOFTWARE%\flash\%PKG_VERSION%\ directories
> instead of renaming them like the package on the wiki requires. It's
> less work and I still have the old installers on hand if I need them.
>
> (I also still use separate ActiveX & NPAPI packages, but that's another
> story.)
>

Find my current flash player package below.
It also disables the update check for client systems, so you have more 
control over the installed flash version.

'---code start (watch for line wraps)

     <package id="AdobeFlashPlayer16" name="Adobe Flash Player 16" revision="%PKG_VERSION%" reboot="false" priority="10">

         <variable name="PKG_VERSION"          value="16.0.0.235" />
         <variable name="PKG_VERSION_SHORT"    value="16" />
         <variable name="PKG_SOURCE"           value="%SOFTWARE%\Adobe Flash Player" />
         <variable name="PKG_DESTINATION"      value="%SystemRoot%\System32\Macromed\Flash"/>
         <variable name="PKG_DESTINATION"      value="%SystemRoot%\SysWOW64\Macromed\Flash" architecture="x64"/>
         <variable name="PKG_DESTINATION_X64"  value="%SystemRoot%\System32\Macromed\Flash"/>

         <check type="uninstall" condition="versiongreaterorequal" path="Adobe Flash Player %PKG_VERSION_SHORT% ActiveX" value="%PKG_VERSION%" os="(5\.\d|6\.[01])\.\d{4}" />
         <check type="uninstall" condition="versiongreaterorequal" path="Adobe Flash Player %PKG_VERSION_SHORT% NPAPI"   value="%PKG_VERSION%" />

         <install include="remove" />
         <install cmd='"%PKG_SOURCE%\install_flash_player_%PKG_VERSION_SHORT%_active_x.exe" /install ' os="(5\.\d|6\.[01])\.\d{4}" />
         <install cmd='"%PKG_SOURCE%\install_flash_player_%PKG_VERSION_SHORT%_plugin.exe" /install ' />
         <install cmd='%ComSpec% /c for /d %D in ( "%PKG_DESTINATION%" "%PKG_DESTINATION_X64%" ) do @if exist "%~D" echo AutoUpdateDisable=1 >"%~D\mms.cfg"'>
             <condition>
                 <check type="logical" condition="not">
                     <check type="host" condition="groups" value="^(AdminSystems)" />
                 </check>
             </condition>
         </install>
         <install cmd='%ComSpec% /c for /d %D in ( "%PKG_DESTINATION%" "%PKG_DESTINATION_X64%" ) do @if exist "%~D\mms.cfg" del /f /q "%~D\mms.cfg"'>
             <condition>
                 <check type="host" condition="groups" value="^(AdminSystems)" />
             </condition>
         </install>

         <upgrade include="install" />

         <remove cmd='"%PKG_SOURCE%\install_flash_player_%PKG_VERSION_SHORT%_active_x.exe" -uninstall' >
             <exit code="any" />
         </remove>
         <remove cmd='"%PKG_SOURCE%\install_flash_player_%PKG_VERSION_SHORT%_plugin.exe" -uninstall' >
             <exit code="any" />
         </remove>
     </package>

'---code end

--
Stefan P.

Top-posting:
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?




More information about the wpkg-users mailing list