[wpkg-users] Check type uninstall

Ulli Conrad ulli.conrad at bio.uni-goettingen.de
Mon Mar 15 07:18:33 CET 2021


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 -


More information about the wpkg-users mailing list