36
edits
Changes
m
</source>
Backwards compatible version (tested using WPKG 1.2 to service requests, and client version 1.3.14). Currently the installer updates the version info in the uninstall section of the registry so it's not necessary to run file-level version checks above.
<source lang=xml>
<package id="AdobeFlashPlayer"
name="Adobe Flash Player (all versions, all platforms)"
revision="%PKG_VERSION%"
reboot="false"
priority="10">
<variable name="PKG_VERSION" value="11.0.1.152" />
<variable name="PKG_SOURCE" value="%SOFTWARE%\AdobeFlashPlayer" />
<check type="logical" condition="and" >
<check type="uninstall" condition="versionequalto" path="Adobe Flash Player .+ ActiveX" value="%PKG_VERSION%" />
<check type="uninstall" condition="versionequalto" path="Adobe Flash Player .+ Plugin" value="%PKG_VERSION%" />
</check>
<install cmd='%ComSpec% /c if %PROCESSOR_ARCHITECTURE% == x86 "%PKG_SOURCE%\uninstall_flash_player_32bit.exe" -uninstall' >
<exit code="any" />
</install>
<install cmd='%ComSpec% /c if %PROCESSOR_ARCHITECTURE% == AMD64 "%PKG_SOURCE%\uninstall_flash_player_64bit.exe" -uninstall' >
<exit code="any" />
</install>
<install cmd='%ComSpec% /c if %PROCESSOR_ARCHITECTURE% == x86 "%PKG_SOURCE%\install_flash_player_ax_32bit.exe" /install' />
<install cmd='%ComSpec% /c if %PROCESSOR_ARCHITECTURE% == x86 "%PKG_SOURCE%\install_flash_player_32bit.exe" /install ' />
<install cmd='%ComSpec% /c if %PROCESSOR_ARCHITECTURE% == AMD64 "%PKG_SOURCE%\install_flash_player_ax_64bit.exe" /install ' />
<install cmd='%ComSpec% /c if %PROCESSOR_ARCHITECTURE% == AMD64 "%PKG_SOURCE%\install_flash_player_64bit.exe" /install ' />
<upgrade cmd='%ComSpec% /c if %PROCESSOR_ARCHITECTURE% == x86 "%PKG_SOURCE%\uninstall_flash_player_32bit.exe" -uninstall' >
<exit code="any" />
</upgrade>
<upgrade cmd='%ComSpec% /c if %PROCESSOR_ARCHITECTURE% == AMD64 "%PKG_SOURCE%\uninstall_flash_player_64bit.exe" -uninstall' >
<exit code="any" />
</upgrade>
<upgrade cmd='%ComSpec% /c if %PROCESSOR_ARCHITECTURE% == x86 "%PKG_SOURCE%\install_flash_player_ax_32bit.exe" /install' />
<upgrade cmd='%ComSpec% /c if %PROCESSOR_ARCHITECTURE% == x86 "%PKG_SOURCE%\install_flash_player_32bit.exe" /install ' />
<upgrade cmd='%ComSpec% /c if %PROCESSOR_ARCHITECTURE% == AMD64 "%PKG_SOURCE%\install_flash_player_ax_64bit.exe" /install ' />
<upgrade cmd='%ComSpec% /c if %PROCESSOR_ARCHITECTURE% == AMD64 "%PKG_SOURCE%\install_flash_player_64bit.exe" /install ' />
<remove cmd='%ComSpec% /c if %PROCESSOR_ARCHITECTURE% == x86 "%PKG_SOURCE%\uninstall_flash_player_32bit.exe" -uninstall' >
<exit code="any" />
</remove>
<remove cmd='%ComSpec% /c if %PROCESSOR_ARCHITECTURE% == AMD64 "%PKG_SOURCE%\uninstall_flash_player_64bit.exe" -uninstall' >
<exit code="any" />
</remove>
</package>
→Combined 32-bit and 64-bit Windows package for both, IE and others: upgrade to latest version; some files were renamed by Adobe
<source lang="xml">
<?xml version="1.0" encoding="UTF-8"?>
<packages
xmlns:xsi="http://www.wpkg.org/packages"
xsi:noNamespaceSchemaLocation="../xsd/packages.xsd" >
<package id="AdobeFlashPlayer"
name="Adobe Flash Player"
revision="%PKG_VERSION%"
reboot="false"
priority="10"> <variable name="PKG_VERSION" value="11.0.1.152102.55" /> <variable name="PKG_SOURCE" value="%SOFTWARE%\Flash Player\%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="Flash11cFlash11e.ocx" />
<variable name="PKG_FILE_PLUGIN" value="NPSWF32.dll" />
<variable name="PKG_FILE_ACTIVEX_X64" value="Flash64_11_0_1Flash64_11_1_102.ocx" /> <variable name="PKG_FILE_PLUGIN_X64" value="NPSWF64_11_0_1NPSWF64_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_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_ax_32bitinstall_flash_player_11_active_x_32bit.exe" /install ' /> <install architecture="x86" cmd='"%PKG_SOURCE%\install_flash_player_32bitinstall_flash_player_11_plugin_32bit.exe" /install ' /> <install architecture="x64" cmd='"%PKG_SOURCE%\install_flash_player_ax_64bitinstall_flash_player_11_active_x_64bit.exe" /install ' /> <install architecture="x64" cmd='"%PKG_SOURCE%\install_flash_player_64bitinstall_flash_player_11_plugin_64bit.exe" /install ' />
<upgrade include="install" />
<remove architecture="x86" cmd='"%PKG_SOURCE%\uninstall_flash_player_32bit.exe" -uninstall' >
<exit code="any" />
</package>
</packages>
</source>