[wpkg-users] Microsoft .NET Desktop Runtime 6.0 ...
Marco Schmidt
schmidt at fgcz.ethz.ch
Fri Feb 24 08:59:23 CET 2023
Hello,
the "path" in check-condition "uninstall" can have a regex.
With the condition "exists", there just need more than one uninstall registry key found to return true.
Greetings ...
Marco
On 22/02/2023 11:59, Marco Gaiarin wrote:
>
> I've setup a recipe like:
>
> <package
> id="ms-dotnet6"
> name="Microsoft .NET Desktop Runtime 6.0"
> revision="6.0.13:1"
> reboot="false"
> priority="50">
>
> <check type="logical" condition="or">
> <check type="logical" condition="and">
> <check type="host" condition="architecture" value="x86" />
> <check type="uninstall" condition="exists" path="Microsoft Windows Desktop Runtime - 6.0.13 (x86)" />
> </check>
> <check type="logical" condition="and">
> <check type="host" condition="architecture" value="x64" />
> <check type="uninstall" condition="exists" path="Microsoft Windows Desktop Runtime - 6.0.13 (x64)" />
> </check>
> </check>
>
> <install architecture='x86' cmd='"%SOFTWARE%\WPKG\windowsdesktop-runtime-6.0.13-win-x86.exe" /install /quiet /norestart' >
> <exit code="0" />
> <exit code="194" reboot="postponed" />
> <exit code="1603" />
> <exit code="3010" reboot="postponed" />
> </install>
> <install architecture='x64' cmd='"%SOFTWARE%\WPKG\windowsdesktop-runtime-6.0.13-win-x64.exe" /install /quiet /norestart' >
> <exit code="0" />
> <exit code="194" reboot="postponed" />
> <exit code="1603" />
> <exit code="3010" reboot="postponed" />
> </install>
>
> <upgrade include='install' />
> <downgrade include='upgrade' />
>
> <remove cmd='wmic product where "Name like 'Microsoft Windows Desktop Runtime - 6.0.%'" call uninstall /nointeractive' >
> <exit code="3010" reboot="postponed" />
> </remove>
> </package>
>
>
> And work as expected, but dotnet6 get upgraded via windows update and so the
> check condition fail, because the version in 'uninstall' (eg, currently
> 6.0.14 version).
>
> There's some way to use wildcards/regexp in uninstall check condition?!
>
>
> Thanks.
>
More information about the wpkg-users
mailing list