[wpkg-users] Microsoft .NET Desktop Runtime 6.0 ...
Marco Gaiarin
gaio at lilliput.linux.it
Wed Feb 22 11:59:21 CET 2023
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.
--
Io ammiro gli americani per come fanno le trattative: prima di tutto
pensano a se stessi, poi a se stessi, e solo alla fine a se stessi.
(Ignacio Lula da Silva)
More information about the wpkg-users
mailing list