[wpkg-users] Uninstall and check conditions...

Marco Gaiarin gaio at lilliput.linux.it
Mon Aug 28 11:59:35 CEST 2023


To circumvent the troubles that the july and august update intreduced with
some old samba 'NT mode' domains, i've setup this recipe:

 <package
        id="10tweaks-disable-kb5028166"
        name="Win10 tweaks: disable KB5028166"
        revision="20230720:1"
        reboot="false"
        priority="5">
        <depends package-id="win-ps-wu"/>

        <check type="execute" condition="exitcodeequalto" path='%COMSPEC% /c powershell -ExecutionPolicy RemoteSigned -Command "Import-Module PSWindowsUpdate; Get-WindowsUpdate -KBArticleID KB5028166 -IsHid

        <install cmd='powershell -ExecutionPolicy RemoteSigned -command "Import-Module PSWindowsUpdate; Hide-WindowsUpdate -KBArticleID KB5028166 -Confirm:$false | Out-Null"' />

        <upgrade include='install' />
        <downgrade include='upgrade' />

        <remove cmd='powershell -ExecutionPolicy RemoteSigned -command "Import-Module PSWindowsUpdate; Get-WindowsUpdate -KBArticleID KB5028166 -WithHidden -Hide:$false -Confirm:$false | Out-Null"' />
 </package>

('win-ps-wu' is a companion recipe that verify that the 'PSWindowsUpdate'
module is installed in poweshell).


The recipe works as expected; but when august update came out, KB5028166
simply 'desappeard', substituted by KB5029244. So the check condition
desappeare too.
And there's no way to 'uninstall' it, because simply desapperaed.


How can i code now a decent check condition to prevent WPKG to install at
every boot the recipe, or try to uninstall it?


Thanks.

-- 
  Ci sono 3 professori di statistica che vanno a caccia di lepri.
  ad un tratto ne vedono una. il primo spara... un metro a destra.
  il secondo spara... un metro a sinistra.
  il terzo esclama: "l'abbiamo presa". 			(Gino)




More information about the wpkg-users mailing list