Jump to content

Basic Windows Update tool


kpu
 Share

Recommended Posts

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)
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...