Sign in to follow this  
Followers 0
kpu

Basic Windows Update tool

1 post in this topic

I know there are tons of tools that do Windows updates. I just created a very basic one that reads an ini file that specifies the location of them and runs each one with "/passive /norestart" at the end.

Does anyone know of a script that can download all the updates pertaning to Windows XP Pro? I've found a VB script on MS that is suppose to download them and run the udpates but of course now I can't find it.. B) Any help would greatly be appreciated!

Here's the code if anyone is interested as well. Nothing special of course.

$updatelocation = iniRead("UpdateTool.ini","CONFIG","updatelocation","")
$search = FileFindFirstFile($updatelocation & "*.exe")  

If $search = -1 Then
    MsgBox(0, "Error", "No files/directories matched the search pattern")
    Exit
EndIf
While 1
    $file = FileFindNextFile($search) 
    If @error Then ExitLoop
   ;MsgBox(4096, "File:", $file)
    TrayTip("Installing", $file,5,1)
    RunWait(@ComSpec & " /c " & $file & " /passive /norestart","",@SW_HIDE)
WEnd
FileClose($search)

Share this post


Link to post
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0