[wpkg-users] Check type uninstall

David Pailler david.pailler at ac-paris.fr
Mon Mar 15 07:37:31 CET 2021


Hi
In this particulary case, you should add
<upgrade include=''remove''/>
And Add an error Check in case There is no older version in remove Line
Regards
David

> Le 15 mars 2021 à 07:18, Ulli Conrad <ulli.conrad at bio.uni-goettingen.de> a écrit :
> 
> Hi all,
> 
> just recognized that the check for an uninstall entry returns false if an older version is installed parallel even if an entry for the newly installed version is present.
> 
> I assume that WPKG scans the uninstall entries and stops on the first occurrence, compares the version string and returns false if it is not matching instead of looking for further occurrences matching properly.
> 
> Is this intended?
> 
> For instance my Blender package. Installs well, check performs properly as long as no older Blender version(s) (e.g. 2.91.2) is/are already installed.
> 
> <?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:schemaLocation="http://www.wpkg.org/packages ../xsd/packages.xsd">
> 
>  <!-- Blender -->
>  <package id="blender" name="Blender" revision="%version%" reboot="false" priority="100">
>    <variable name="version" value="2.92.0" />
>        
>    <check type="uninstall" condition="versiongreaterorequal" path="Blender" value="%version%" />
>        
>    
>    <install cmd="msiexec /qn /i "%SOFTWARE%\blender\blender-%version%-windows64.msi" ALLUSERS=1" />
>    
>    <upgrade include="install" />
> 
>    <remove cmd="msiexec /qn /x {D6E38255-FB12-4724-A6FF-075B43272C66}" />
> 
>  </package>    
> 
> 
> </packages:packages>
> 
> Thank you
> 
> - Ulli -
> ---------------------------------
> wpkg-users mailing list archives >> http://lists.wpkg.org/pipermail/wpkg-users/
> _______________________________________________
> wpkg-users mailing list
> wpkg-users at lists.wpkg.org
> https://lists.wpkg.org/mailman/listinfo/wpkg-users



More information about the wpkg-users mailing list