[wpkg-users] Conditional depends?
Stefan Pendl
stefan.pendl.71 at gmail.com
Wed Jan 9 23:20:28 CET 2019
Am 09.01.2019 um 18:25 schrieb Marco Gaiarin:
>
> There's some way to write a stricter matches?
>
I have the following flash player package that manages active-x only on
Win7 and below:
<!-- code start (watch for line wraps -->
<package id="AdobeFlashPlayer32" name="Adobe Flash Player 32"
revision="%PKG_VERSION%" reboot="false" priority="10">
<variable name="PKG_VERSION" value="32.0.0.114" />
<variable name="PKG_VERSION_SHORT" value="32" />
<variable name="PKG_SOURCE" value="%SOFTWARE%\Flash
Player" />
<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%" />
<check type="uninstall" condition="versiongreaterorequal"
path="Adobe Flash Player %PKG_VERSION_SHORT% PPAPI"
value="%PKG_VERSION%" />
<install include="remove" />
<install
cmd='"%PKG_SOURCE%\install_flash_player_%PKG_VERSION_SHORT%_active_x.exe"
-install ' >
<condition>
<check type="host" condition="os"
value="(5\.\d|6\.[01])\.\d{4}" />
</condition>
</install>
<install
cmd='"%PKG_SOURCE%\install_flash_player_%PKG_VERSION_SHORT%_plugin.exe"
-install ' />
<install
cmd='"%PKG_SOURCE%\install_flash_player_%PKG_VERSION_SHORT%_ppapi.exe"
-install ' />
<upgrade include="install" />
<downgrade include="install" />
<remove
cmd='"%PKG_SOURCE%\install_flash_player_%PKG_VERSION_SHORT%_active_x.exe"
-uninstall -force' >
<condition>
<check type="host" condition="os"
value="(5\.\d|6\.[01])\.\d{4}" />
</condition>
<exit code="any" />
</remove>
<remove
cmd='"%PKG_SOURCE%\install_flash_player_%PKG_VERSION_SHORT%_plugin.exe"
-uninstall -force' >
<exit code="any" />
</remove>
<remove
cmd='"%PKG_SOURCE%\install_flash_player_%PKG_VERSION_SHORT%_ppapi.exe"
-uninstall -force' >
<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