[wpkg-users] %version%

Pendl Stefan stefan.pendl at haidlmair.at
Fri Oct 8 13:29:45 CEST 2010


>
> > The check will not work, since I doubt, that variable
> expansion is used on uninstall paths.
> > You can use regular expressions and check the DisplayVersion value:
> >
> > <check type="uninstall" condition="versiongreaterorequal"
> path="Adobe Reader 9.4.+" value="%version%" />
> >
> > ---
> > Stefan
> No, variables in uninstall strings work just fine, as this shows:
>
> 2010-10-08 08:55:53, DEBUG   : Variable version = 9.4.0
> 2010-10-08 08:55:53, DEBUG   : Uninstall entry 'Adobe Reader 9.4.0'
> matches string 'Adobe Reader 9.4.0'.
> 2010-10-08 08:55:53, DEBUG   : Uninstall entry for Adobe Reader
> %version% was found: test successful
>

I would still alter the example at the wiki to use the following check, which will work for any localized version of Adobe Reader:

<check type="uninstall" condition="versiongreaterorequal" path="Adobe Reader .+" value="%version%" />

In addition this will not fail for added patches ;-)

---
Stefan



More information about the wpkg-users mailing list