[wpkg-users] KB3167679

Marco Gaiarin gaio at sv.lnf.it
Mon Aug 29 11:10:38 CEST 2016


[i reply to myself...]

> Microsoft emitted in august the patch at subject:
> 	https://support.microsoft.com/it-it/kb/3167679

Ne version of the recipe:

 <package
	id="7tweaks-remove-kb3167679"
	name="Seven Registry tweaks: uninstall KB3167679"
	revision="20160809:3"
	reboot="false"
	priority="5">

	<check type="logical" condition="and">
		<check type="execute" path='%COMSPEC% /c wmic qfe | find "KB3167679" >nul' condition="exitcodeequalto" value="1" />
		<check type="execute" path='%COMSPEC% /c cscript.exe //T:120 "%WPKGROOT%\tools\CheckHiddenWindowsUpdates.vbs" 3167679 >nul' condition="exitcodeequalto" value="0" />
	</check>

	<install cmd='wusa /uninstall /kb:3167679 /quiet /norestart' >
		<exit code='1605' />	<!-- Non installato, standard. -->
		<exit code="2359303" />	<!-- Non installato, specifico. -->
		<exit code="3010" reboot="postponed" />
	</install>
	<install cmd='cscript.exe //T:300 "%WPKGROOT%\tools\HideWindowsUpdates.vbs" 3167679' />
	
	<upgrade include='install' />
	<downgrade include='upgrade' />

	<!-- Faccio solo l'unhide, al resto penserà windows update... -->
	<remove cmd='cscript.exe "%WPKGROOT%\tools\UnHideWindowsUpdates.vbs" 3167679' />
 </package>


CheckHiddenWindowsUpdates.vbs and UnHideWindowsUpdates.vbs are banal
script modification of HideWindowsUpdates.vbs.


I've filled with timeout because 'HideWindowsUpdates.vbs' do a full
enumeration of patches, and then look at not installed ones.

There's some way to rewrite the script with a stricter query, eg
looking precisely at that KB? The code snippet is:

 Set updateSession = CreateObject("Microsoft.Update.Session")
 Set updateSearcher = updateSession.CreateUpdateSearcher()
 Set searchResult = updateSearcher.Search("IsInstalled=0")

i've digged on google to fund a stricter query, with no luck.


Thanks.

-- 
dott. Marco Gaiarin				        GNUPG Key ID: 240A3D66
  Associazione ``La Nostra Famiglia''          http://www.lanostrafamiglia.it/
  Polo FVG   -   Via della Bontà, 7 - 33078   -   San Vito al Tagliamento (PN)
  marco.gaiarin(at)lanostrafamiglia.it   t +39-0434-842711   f +39-0434-842797

		Dona il 5 PER MILLE a LA NOSTRA FAMIGLIA!
    http://www.lanostrafamiglia.it/25/index.php/component/k2/item/123
	(cf 00307430132, categoria ONLUS oppure RICERCA SANITARIA)


More information about the wpkg-users mailing list