[wpkg-users] OS check matching
Stefan Pendl
stefan.pendl.71 at gmail.com
Tue Feb 4 12:06:45 CET 2014
I do not check for Win8 in the general package where I assign the different
releases.
I check for Win8 in the package of the different releases, see the flash
player 11 and 12 release packages.
---
Stefan
2014-02-04 Paul McGrath <J.P.McGrath at leeds.ac.uk>:
> Hi Stefan,
>
> Your example for XP and above is XP '5\.[1-9]' and the Windows Vista, 7
> and 8 '6\.\d' plus the ')\.\d{4}'
> os="(5\.[1-9]|6\.\d)\.\d{4}"
>
> so if I am doing Vista ' 6\.0\.\d{4}' and Windows 7 ' 6\.1\.\d{4}´ BUT NOT
> Windows 8 then should it be like this?
> os="( 6\.0\.\d{4}| 6\.1\.\d{4})"
> or
> os="(6\.0|6\.1)\.\d{4}" (not sure about this one ;-))
>
>
> Just to repeat my original post Flash ActiveX is now a component part of
> Windows 8 and managed by Microsoft update so a WPKG install will fail with
> a 1722 error. Obviously the Firefox/Chrome Flash Plugin still needs to be
> installed in Windows 8.
>
> thanks
> Paul
>
> -----Original Message-----
> From: wpkg-users-bounces at lists.wpkg.org [mailto:
> wpkg-users-bounces at lists.wpkg.org] On Behalf Of Stefan Pendl
> Sent: 03 February 2014 21:41
> To: wpkg-users at lists.wpkg.org
> Subject: Re: [wpkg-users] OS check matching
>
> Am 03.02.2014 22:15, schrieb Paul McGrath:
> > Hi,
> > I am having some problems with check and install OS matching.
> > Windows 8 already includes Flash Player ActiveX so I want to skip the
> > check and install for Windows 8 so I have this <check type="uninstall"
> > os="windows.+6\.\d{1}\.\d{4}|windows.+6\.\d{0}\.\d{4}"
> > condition="exits" path"Adobe Flash Player %version% Active" /> <!--
> > 6\.\d{1} = W7 6\.\d{0} = Vista -->
> >
> > then for installing
> > <install os="windows.+6\.\d{1}\.\d{4}|windows.+6\.\d{0}\.\d{4}"
> > cmd="msiexec /i flash.%version%.activex.msi /qn /norestart " />
> >
> > In the install case it still attempts to run in Windows 8 when it
> > should be ignoring because I've put in W7 and Vista only. I've
> > delimited then in OS using |
> >
> > Can anyone advise if I am using the correct matching "windows.+6....."
> for Windows 7 and Vista? Also, can I delimit them with a pipe | ?
> > thanks
> > Paul
> >
> You have the os match wrong, the pipe must be used inside of brackets.
>
> Below find my flash player packages.
>
> Assign the package AdobeFlashPlayer through a common profile, this package
> will include the correct flash player version based on the os.
>
> The packages AdobeFlashPlayer11 and 12 include the checks for Windows 8
> and higher to skip the Active X install on it.
>
> '---code start (watch for line wraps)
>
> <?xml version="1.0" encoding="UTF-8"?>
>
> <packages:packages xmlns:packages="http://www.wpkg.org/packages"
> xmlns:wpkg="http://www.wpkg.org/wpkg"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:noNamespaceSchemaLocation="../xsd/packages.xsd" >
>
> <package
> id="AdobeFlashPlayer"
> name="Adobe Flash Player"
> revision="2012.02.19"
> reboot="false"
> priority="10"
> execute="once">
>
> <!-- install version 10 on Windows 2000 -->
> <include package-id="AdobeFlashPlayer10" os="5\.0\.\d{4}"/>
>
> <!-- install version 12 on Windows XP and above -->
> <include package-id="AdobeFlashPlayer12"
> os="(5\.[1-9]|6\.\d)\.\d{4}" />
> </package>
>
> <package id="AdobeFlashPlayer10" name="Adobe Flash Player 10"
> revision="%PKG_VERSION%" reboot="false" priority="10">
>
> <variable name="PKG_VERSION" value="10.3.183.11" />
> <variable name="PKG_SOURCE" value="%SOFTWARE%\Flash
> Player" />
> <variable name="PKG_DESTINATION"
> value="%SystemRoot%\System32\Macromed\Flash"/>
>
> <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%" />
>
> <install include="remove" />
> <install cmd='"%PKG_SOURCE%\install_flash_player_10_active_x.exe"
> /install ' />
> <install cmd='"%PKG_SOURCE%\install_flash_player_10.exe" /install
> ' />
>
> <upgrade include="install" />
>
> <remove cmd='"%PKG_SOURCE%\uninstall_flash_player.exe"
> -uninstall' >
> <exit code="any" />
> </remove>
> </package>
>
> <package id="AdobeFlashPlayer11" name="Adobe Flash Player 11"
> revision="%PKG_VERSION%" reboot="false" priority="10">
>
> <variable name="PKG_VERSION" value="11.9.900.170" />
> <variable name="PKG_SOURCE" value="%SOFTWARE%\Flash Player" />
>
> <check type="uninstall" condition="versiongreaterorequal"
> path="Adobe Flash Player .+ ActiveX.*" value="%PKG_VERSION%"
> os="(5\.[1-9]|6\.[01])\.\d{4}"/>
> <check type="uninstall" condition="versiongreaterorequal"
> path="Adobe Flash Player .+ Plugin.*" value="%PKG_VERSION%" />
>
> <install include="remove" />
> <install cmd='"%PKG_SOURCE%\install_flash_player_11_active_x.exe"
> /install ' os="(5\.[1-9]|6\.[01])\.\d{4}"/>
> <install cmd='"%PKG_SOURCE%\install_flash_player_11_plugin.exe"
> /install ' />
>
> <upgrade include="install" />
>
> <remove cmd='"%PKG_SOURCE%\install_flash_player_11_active_x.exe"
> -uninstall' >
> <exit code="any" />
> </remove>
> <remove cmd='"%PKG_SOURCE%\install_flash_player_11_plugin.exe"
> -uninstall' >
> <exit code="any" />
> </remove>
> </package>
>
> <package id="AdobeFlashPlayer12" name="Adobe Flash Player 12"
> revision="%PKG_VERSION%" reboot="false" priority="10">
>
> <variable name="PKG_VERSION" value="12.0.0.38" />
> <variable name="PKG_SOURCE" value="%SOFTWARE%\Flash Player" />
>
> <check type="uninstall" condition="versiongreaterorequal"
> path="Adobe Flash Player .+ ActiveX.*" value="%PKG_VERSION%"
> os="(5\.[1-9]|6\.[01])\.\d{4}"/>
> <check type="uninstall" condition="versiongreaterorequal"
> path="Adobe Flash Player .+ Plugin.*" value="%PKG_VERSION%" />
>
> <install include="remove" />
> <install cmd='"%PKG_SOURCE%\install_flash_player_12_active_x.exe"
> /install ' os="(5\.[1-9]|6\.[01])\.\d{4}"/>
> <install cmd='"%PKG_SOURCE%\install_flash_player_12_plugin.exe"
> /install ' />
>
> <upgrade include="install" />
>
> <remove cmd='"%PKG_SOURCE%\install_flash_player_12_active_x.exe"
> -uninstall' >
> <exit code="any" />
> </remove>
> <remove cmd='"%PKG_SOURCE%\install_flash_player_12_plugin.exe"
> -uninstall' >
> <exit code="any" />
> </remove>
> </package>
> </packages:packages>
>
> '---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?
>
> -------------------------------------------------------------------------
> Hotel discounts, best prices: http://www.booking.com/index.html?aid=366545
> -------------------------------------------------------------------------
> wpkg-users mailing list archives >>
> http://lists.wpkg.org/pipermail/wpkg-users/
> _______________________________________________
> wpkg-users mailing list
> wpkg-users at lists.wpkg.org
> http://lists.wpkg.org/mailman/listinfo/wpkg-users
> -------------------------------------------------------------------------
> Hotel discounts, best prices: http://www.booking.com/index.html?aid=366545
> -------------------------------------------------------------------------
> wpkg-users mailing list archives >>
> http://lists.wpkg.org/pipermail/wpkg-users/
> _______________________________________________
> wpkg-users mailing list
> wpkg-users at lists.wpkg.org
> http://lists.wpkg.org/mailman/listinfo/wpkg-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wpkg.org/pipermail/wpkg-users/attachments/20140204/c0abdc27/attachment-0003.html>
More information about the wpkg-users
mailing list