Ceci est une ancienne révision du document !


Plugin Flash

flash.xml
<?xml version="1.0" encoding="UTF-8"?> 
<packages
        xmlns:xsi="http://www.wpkg.org/packages"
        xsi:noNamespaceSchemaLocation="../xsd/packages.xsd" >
 
    <package id="flash"
            name="Adobe Flash Player"
            revision="1"
            reboot="false"
            priority="10">        
        <variable name="PKG_VERSION"          value="11.1.102.55" />
        <variable name="PKG_SOURCE"           value="%SOFTWARE%\flash\%PKG_VERSION%" />
        <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"/>
        <variable name="PKG_FILE_ACTIVEX"     value="Flash11e.ocx" />
        <variable name="PKG_FILE_PLUGIN"      value="NPSWF32.dll" />
        <variable name="PKG_FILE_ACTIVEX_X64" value="Flash64_11_1_102.ocx" />
        <variable name="PKG_FILE_PLUGIN_X64"  value="NPSWF64_11_1_102.dll" />
 
        <check type="uninstall" condition="versiongreaterorequal" path="Adobe Flash Player .+ ActiveX.*"              value="%PKG_VERSION%" />
        <check type="uninstall" condition="versiongreaterorequal" path="Adobe Flash Player .+ Plugin.*"               value="%PKG_VERSION%" />
        <check type="file"      condition="versiongreaterorequal" path="%PKG_DESTINATION%\%PKG_FILE_ACTIVEX%"         value="%PKG_VERSION%" />
        <check type="file"      condition="versiongreaterorequal" path="%PKG_DESTINATION%\%PKG_FILE_PLUGIN%"          value="%PKG_VERSION%" />
        <check type="file"      condition="versiongreaterorequal" path="%PKG_DESTINATION_X64%\%PKG_FILE_ACTIVEX_X64%" value="%PKG_VERSION%" architecture="x64" />
        <check type="file"      condition="versiongreaterorequal" path="%PKG_DESTINATION_X64%\%PKG_FILE_PLUGIN_X64%"  value="%PKG_VERSION%" architecture="x64" />
 
        <install include="remove" />
        <install architecture="x86" cmd='"%PKG_SOURCE%\install_flash_player_11_active_x_32bit.exe" /install ' />
        <install architecture="x86" cmd='"%PKG_SOURCE%\install_flash_player_11_plugin_32bit.exe" /install ' />
        <install architecture="x64" cmd='"%PKG_SOURCE%\install_flash_player_11_active_x_64bit.exe" /install ' />
        <install architecture="x64" cmd='"%PKG_SOURCE%\install_flash_player_11_plugin_64bit.exe" /install ' />
 
        <upgrade include="install" />
 
        <remove cmd="taskkill /F /IM Firefox.exe">
          <exit code="0" />
          <exit code="128" />
          <exit code="1" />
        </remove>
        <remove cmd="taskkill /F /IM iexplore.exe">
          <exit code="0" />
          <exit code="128" />
          <exit code="1" />
        </remove>
        <remove architecture="x86" cmd='"%PKG_SOURCE%\uninstall_flash_player_32bit.exe" -uninstall' >
            <exit code="any" />
        </remove>
        <remove architecture="x64" cmd='"%PKG_SOURCE%\uninstall_flash_player_64bit.exe" -uninstall' >
            <exit code="any" />
        </remove>
    </package>
</packages>
  • tuto/gestion_de_parc/wpkg/flash.1326989859.txt.gz
  • Dernière modification: 19/01/2012 17:17
  • de dani