Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Update > "Microsoft Update' redistributabke file?

Reply
Thread Tools Display Modes

"Microsoft Update' redistributabke file?

 
 
mlazovjp
Guest
Posts: n/a

 
      07-05-2005
Working on making a completely automated install of Windows and all relevant
updates, applications, etc.

I was able to find the Windows Update Agent v2.0 redistributable file, which
allows me to install the new Windows Update v6 ActiveX control on a computer
without having to visit windowupdate.microsoft.com and agree to update the
control, etc etc.
http://msdn.microsoft.com/library/de...date_agent.asp

Is there something similar I can download and install that will configure
Microsoft Update for a computer without haviong to visit the Microsoft Update
web page?
 
Reply With Quote
 
 
 
 
Torgeir Bakken \(MVP\)
Guest
Posts: n/a

 
      07-05-2005
mlazovjp wrote:

> Working on making a completely automated install of Windows and
> all relevant updates, applications, etc.
>
> I was able to find the Windows Update Agent v2.0 redistributable
> file, which allows me to install the new Windows Update v6
> ActiveX control on a computer without having to visit
> windowupdate.microsoft.com and agree to update the control, etc etc.
> http://msdn.microsoft.com/library/de...date_agent.asp
>
> Is there something similar I can download and install that will
> configure Microsoft Update for a computer without haviong to visit
> the Microsoft Update web page?

Hi,

For x86-based computers (WindowsUpdateAgent20-x86.exe)
http://go.microsoft.com/fwlink/?LinkId=43264

(will work for Win2k SP3 and SP4, WinXP RTM/SP1/SP2, and
Win2k3 RTM/SP1)

For x64-based computers (WindowsUpdateAgent20-x64.exe):
http://go.microsoft.com/fwlink/?LinkId=43265


The VBScript below checks if the new AU client is needed on the
computer (by checking the version of wuaueng.dll), and runs
WindowsUpdateAgent20-x86.exe if so (in silent mode).

Adjust path in the sExePath variable if necessary.


'--------------------8<----------------------

' prefix with an UNC path if necessary
sExePath = "WindowsUpdateAgent20-x86.exe"

Set oShell = CreateObject("WScript.Shell")
Set oFSO = CreateObject("Scripting.FileSystemObject")

' path to the Windows system32 folder
sWinSysDir = oFSO.GetSpecialFolder(1).Path
sDllFile = sWinSysDir & "\wuaueng.dll"

bUpdateNeeded = True ' init value
If oFSO.FileExists(sDllFile) Then
If Not CompareFileVersions(sDllFile, "5.8.0.2469") = "SecondFileNewest" Then
bUpdateNeeded = False
End If
End If

If bUpdateNeeded Then
' stop the Automatic Updates service
oShell.Run "%SystemRoot%\system32\net.exe stop wuauserv", 0, True
' install the AU client
oShell.Run sExePath & " /quiet /norestart", 1, True
End If


Function CompareFileVersions(sFileInfo1, sFileInfo2)
Dim oFSO, sFileVer1, sFileVer2, aFileVer1, aFileVer2, iCount, iDateDiff

Set oFSO = CreateObject("Scripting.FileSystemObject")

If sFileInfo1 = "" Or sFileInfo2 = "" Then
MsgBox _
"CompareFileVersions error: Invalid argument, empty argument given!", _
vbExclamation + vbSystemModal, "CompareFileVersions"
Err.Raise 5 'Invalid procedure call or argument
End If

If oFSO.FileExists(sFileInfo1) Then
sFileVer1 = oFSO.GetFileVersion(sFileInfo1)
Elseif UBound(Split(sFileInfo1, ".")) = 3 Then
sFileVer1 = sFileInfo1
Else
MsgBox "CompareFileVersions error: 1. argument is not an existing " _
& "file or correct file version format: " & sFileInfo1, _
vbExclamation + vbSystemModal, "CompareFileVersions"
Err.Raise 5 'Invalid procedure call or argument
End If

If oFSO.FileExists(sFileInfo2) Then
sFileVer2 = oFSO.GetFileVersion(sFileInfo2)
Elseif UBound(Split(sFileInfo2, ".")) = 3 Then
sFileVer2 = sFileInfo2
Else
MsgBox "CompareFileVersions error: 2. argument is not an existing " _
& "file or correct file version format: " & sFileInfo2, _
vbExclamation + vbSystemModal, "CompareFileVersions"
Err.Raise 5 'Invalid procedure call or argument
End If

If sFileVer1 <> "" And sFileVer2 <> "" Then
If sFileVer1 = sFileVer2 Then
CompareFileVersions = "SameVersion"
Else
aFileVer1 = Split(sFileVer1, ".")
aFileVer2 = Split(sFileVer2, ".")
For iCount = 0 To 3
If CInt(aFileVer1(iCount)) > CInt(aFileVer2(iCount)) Then
CompareFileVersions = "FirstFileNewest"
Exit For
ElseIf CInt(aFileVer1(iCount)) < CInt(aFileVer2(iCount)) Then
CompareFileVersions = "SecondFileNewest"
Exit For
Else
CompareFileVersions = "UnknownStatus"
End If
Next
End If

Elseif sFileVer1 <> "" And sFileVer2 = "" Then
CompareFileVersions = "FirstFileNewest"
Elseif sFileVer1 = "" And sFileVer2 <> "" Then
CompareFileVersions = "SecondFileNewest"
Else
iDateDiff = DateDiff("s", oFSO.GetFile(sFileInfo1).DateLastModified, _
oFSO.GetFile(sFileInfo2).DateLastModified)
If iDateDiff < 0 Then
CompareFileVersions = "FirstFileNewest"
ElseIf iDateDiff > 0 Then
CompareFileVersions = "SecondFileNewest"
Else
CompareFileVersions = "SameVersion"
End If
End If
End Function

'--------------------8<----------------------



WSH 5.6 documentation (local help file) can be downloaded from here
if you haven't got it already:
http://msdn.microsoft.com/downloads/list/webdev.asp



--
torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of
the 1328 page Scripting Guide:
http://www.microsoft.com/technet/scr...r/default.mspx
 
Reply With Quote
 
mlazovjp
Guest
Posts: n/a

 
      07-05-2005
"Torgeir Bakken (MVP)" wrote:

> > Is there something similar I can download and install that will
> > configure Microsoft Update for a computer without haviong to visit
> > the Microsoft Update web page?


Thanks for the response, but it's not exactly what I was looking for. Let
me clarify.

I was able to download the WindowsUpdate Agent v2.0 and script the
installation similar to the code you attached to your reply.

However, when I run the Windows Update Agent v2.0 installer and go to the
Windows Update site, I see the link to the right which tells me to "Upgrade
to Microsoft Update". If I click on that link (which takes me to
http://update.microsoft.com/microsof....aspx?ln=en-us), I now
have to install THAT client.

I am looking for a stand-alone installer for the Microsoft Update agent,
which while related to the Windows Update agent, appears to be different
enough that it requires its own activex control.

Do you know where I can find the stand-alone installer for the Microsoft
Update agent?

Thank you.
 
Reply With Quote
 
Torgeir Bakken \(MVP\)
Guest
Posts: n/a

 
      07-05-2005
mlazovjp wrote:

> Thanks for the response, but it's not exactly what I was looking for.
> Let me clarify.
>
> I was able to download the WindowsUpdate Agent v2.0 and script the
> installation similar to the code you attached to your reply.
>
> However, when I run the Windows Update Agent v2.0 installer and go
> to the Windows Update site, I see the link to the right which tells
> me to "Upgrade to Microsoft Update". If I click on that link (which
> takes me to http://update.microsoft.com/microsoftupdate/v6
> /default.aspx?ln=en-us), I now have to install THAT client.
>
> I am looking for a stand-alone installer for the Microsoft Update
> agent, which while related to the Windows Update agent, appears to
> be different enough that it requires its own activex control.


Ahh, now I see what you meant.

>
> Do you know where I can find the stand-alone installer for the
> Microsoft Update agent?


Sorry, no, and I doubt that there exists one...



--
torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of
the 1328 page Scripting Guide:
http://www.microsoft.com/technet/scr...r/default.mspx
 
Reply With Quote
 
mlazovjp
Guest
Posts: n/a

 
      07-05-2005
"Torgeir Bakken (MVP)" wrote:

> > Do you know where I can find the stand-alone installer for the
> > Microsoft Update agent?

> Sorry, no, and I doubt that there exists one...

I was afriad you would say something like that

Thanks.
 
Reply With Quote
 
D1rk
Guest
Posts: n/a

 
      08-11-2005

maybe using WSUS... but I'm looking for the same thing you ask too, without
the need to install WSUS...

"mlazovjp" ha scritto:

> Working on making a completely automated install of Windows and all relevant
> updates, applications, etc.
>
> I was able to find the Windows Update Agent v2.0 redistributable file, which
> allows me to install the new Windows Update v6 ActiveX control on a computer
> without having to visit windowupdate.microsoft.com and agree to update the
> control, etc etc.
> http://msdn.microsoft.com/library/de...date_agent.asp
>
> Is there something similar I can download and install that will configure
> Microsoft Update for a computer without haviong to visit the Microsoft Update
> web page?

 
Reply With Quote
 
Torgeir Bakken \(MVP\)
Guest
Posts: n/a

 
      08-12-2005
D1rk wrote:

> "mlazovjp" wrote:
>
>>Working on making a completely automated install of Windows and all relevant
>>updates, applications, etc.
>>
>>I was able to find the Windows Update Agent v2.0 redistributable file, which
>>allows me to install the new Windows Update v6 ActiveX control on a computer
>>without having to visit windowupdate.microsoft.com and agree to update the
>>control, etc etc.
>>http://msdn.microsoft.com/library/de...date_agent.asp
>>
>> Is there something similar I can download and install that
>> will configure Microsoft Update for a computer without
>> haviong to visit the Microsoft Update web page?

>
> maybe using WSUS... but I'm looking for the same thing you ask
> too, without the need to install WSUS...

Hi,

WSUS installs the Windows Update agent, and not the Microsoft
Update agent...



--
torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of
the 1328 page Scripting Guide:
http://www.microsoft.com/technet/scr...r/default.mspx
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Uninstall "Microsoft Update" and return to "Windows Update" jabarnut Windows Update 14 07-13-2005 02:58 AM
Microsoft WinXP Upgrade Advisor hangs on system file "DVD Movie Player" jomason@cba.ua.edu Windows Update 1 05-18-2005 03:08 AM
RE: Problems with KB826939 Rollup 1 for Microsoft Windows XP Update from "Heaven" alvaradorocks Windows Update 0 06-05-2004 12:36 AM
Microsoft Update loops to "UPDATE NOW" raljones Windows Update 0 09-23-2003 05:03 PM
Cannot accept on "Microsoft Windows Update - Web Page Dialog" Rob Windows Update 1 08-03-2003 09:10 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59