(view source code of nowinupd.kix as plain text)
; NoWindowsUpdate.kix, Version 1.00
; Disable Windows' Update function
;
; Usage: KIX32 NoWindowsUpdate.kix [ $Answer=Y ]
;
; Written by Rob van der Woude
; http://www.robvanderwoude.com
If $Answer = ""
? "Press Y if you want to disable Windows' Update function "
Get $Answer
EndIf
If $Answer = "Y"
$Tree = "\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer"
$Key = "NoWindowsUpdate"
$Val = "00000001"
$Type = "REG_DWORD"
? "Writing registry values . . ."
$HKTree = "HKEY_CURRENT_USER" + $Tree
$RC = AddKey( $HKTree )
$RC = WriteValue( $HKTree, $Key, $Val, $Type )
$HKTree = "HKEY_LOCAL_MACHINE" + $Tree
$RC = AddKey( $HKTree )
$RC = WriteValue( $HKTree, $Key, $Val, $Type )
EndIf
page last modified: 2024-04-16; loaded in 0.0255 seconds