←  AutoPatcher for Windows XP / 2003 (x64)

AutoPatcher Forum

»

Error in scripts, modules & detection

excalibur's Photo excalibur 01 Dec 2008

@ Erik,

Welcome back from your hols. Bit late with that - appologies.

Great utility, use it on all the time for systems that I install/fix/upgrade.

Microsoft should acknowlegde all your efforts, as I am sure that all the members do.

I am using Windows XP 64 and have found some detection errors with some modules.

I appreciate that Windows XP x64 has not been updated and accept my appologies if they have already been updated for the next release.

Here is my APUP.log
APUP Has Started

Operating System: English (1033)  Service Pack 2
Current Locale: English - United Kingdom / Non-Unicode Default: English - United Kingdom
Starting APUP From: D:\AutoPatcher
Date & Time: 01-Dec-2008 16:51 UTC Offset: 0

***Downloading/Processing Releases.list***

List file HTTP location: http://www.autopatcher.com/releases.list

***Releases.list Processed: Waiting for User Input***

The Following Releases have been Picked:
apup.script
apengine.script
autopatcher_vista_x86.script
autopatcher_vista_x64.script
autopatcher_xp_sp3_enu_0811d.script
autopatcher_xp_2003_x64_enu.script
autopatcher_directx.script
autopatcher_dotnet.script
autopatcher_addons.script
autopatcher_adbereader.script
autopatcher_java_jre_0811.script
autopatcher_off_07_glb.script
autopatcher_off_03_enu.script
autopatcher_off_02_enu.script
autopatcher_off_addon_enu.script
autopatcher_offsp_07_enu.script

***Running Any Pre-Cleanup Routines***

Deleting file D:\AutoPatcher\modules\Components\__msxml\MSXML4SP2_enu.apm_files\msxml4-KB936181-enu.exe

***Starting Detection Routine Phase***

Detection error for file D:\AutoPatcher\modules\Components\WindowsUpdate_x64_files\WindowsUpdateAgent30-x64.exe
	MD5 Hashes do NOT match. Expecting 8D7C203B54379F275C86939FC7181B0C, but found 00281e3cc1284669f61c68c7de042c2b!!!
  Item WindowsUpdateAgent30-x64.exe failed detection. Adding its download to the queue.
  --Adding http://download.windowsupdate.com/windowsupdate/redist/standalone/7.2.6001.788/windowsupdateagent30-x64.exe--

Detection error for file D:\AutoPatcher\modules\Components\__msxml\MSXML4SP2_enu.apm
	MD5 Hashes do NOT match. Expecting 499CEB713F963E72741CAF93C8713F41, but found 03c9df734cd77e870c0075a5c42fcac0!!!
Detection error for file D:\AutoPatcher\modules\Components\WindowsUpdate_x64.apm
	MD5 Hashes do NOT match. Expecting EE8E6F7E7DD652AFA58D9BDC4251615F, but found ed398e120357e6c6cca00a53bc8bee47!!!
  Item AutoPatcher Components Modules is missing. Adding its download to the queue.
  --Adding http://www.autopatcher.com/releases/english/windows_components_xp_2003_x64_enu.zip--

Missing file D:\AutoPatcher\modules\Components\__msxml\MSXML4SP2_enu.apm_files\msxml4-KB936181-enu.exe
  Item MSXML 4.0 Update is missing. Adding its download to the queue.
  --Adding http://download.microsoft.com/download/9/4/2/9422e6b6-08ee-49cb-9f05-6c6ee755389e/msxml4-KB936181-enu.exe--

Missing file D:\AutoPatcher\modules\Components\WindowsUpdate_x64_files\WindowsUpdateAgent30-x64.exe
  Item WindowsUpdateAgent30-x64.exe is missing. Adding its download to the queue.
  --Adding http://download.windowsupdate.com/windowsupdate/redist/standalone/7.2.6001.784/windowsupdateagent30-x64.exe--

***Downloading Releases***

Files to be Downloaded: 4
windowsupdateagent30-x64.exe: 200 Bad record number

Download Error: D:\AutoPatcher\modules\Components\WindowsUpdate_x64_files\WindowsUpdateAgent30-x64.exe
	File size does NOT match. Expecting 7040352, but found 7048216!!!

***Processing Cleanup Routines***

Extracting D:\AutoPatcher\modules\Components\windows_components_xp_2003_x64_enu.zip into D:\AutoPatcher\modules\Components
Deleting file D:\AutoPatcher\modules\Components\windows_components_xp_2003_x64_enu.zip
I think I have tracked down the problems or at least can point you in the right direction...

1. Security Update for MSXML 4.0 SP2

modules\Components\__msxml\MSXML4SP2_enu.apm
	   SIZE: 1,326
   MD5 HASH: 499CEB713F963E72741CAF93C8713F41
I have manually downloaded the relevent scripts and modules (*.7z/*.zip) and MSXML4SP2_enu.APM is identical as above

APUP.LOG
   Detection error for file D:\AutoPatcher\modules\Components\__msxml\MSXML4SP2_enu.apm
	   MD5 Hashes do NOT match. Expecting 499CEB713F963E72741CAF93C8713F41, but found 03c9df734cd77e870c0075a5c42fcac0!!!
temp_bin\autopatcher_vista_x64.script
	  Item=AutoPatcher Components Modules

	  DetectFile=autopatcher:\modules\Components\__msxml\MSXML4SP2_enu.apm
	  DetectHash=03C9DF734CD77E870C0075A5C42FCAC0
temp_bin\autopatcher_vista_x86.script
	  Item=AutoPatcher Components Modules

	  DetectFile=autopatcher:\modules\Components\__msxml\MSXML4SP2_enu.apm
	  DetectHash=03C9DF734CD77E870C0075A5C42FCAC0
temp_bin\autopatcher_xp_2003_x64_enu.script
	  Item=AutoPatcher Components Modules

	  DetectFile=autopatcher:\modules\Components\__msxml\MSXML4SP2_enu.apm
	  DetectHash=499CEB713F963E72741CAF93C8713F41
temp_bin\autopatcher_xp_sp3_enu_0811d.script
	  Item=AutoPatcher XP SP3 Components Modules

	  DetectFile=autopatcher:\modules\Components\__msxml\MSXML4SP2_enu.apm
	  DetectHash=03c9df734cd77e870c0075a5c42fcac0
This happens everytime I update

ALSO...

modules\Components\__msxml\MSXML4SP2_enu.apm_files\msxml4-KB936181-enu.exe
	VERSION: 4.20.9848.0
	   SIZE: 5,652,328
   MD5 HASH: 12FAD7BF495F37F84683FE09B91987CC
APUP.LOG
   ***Running Any Pre-Cleanup Routines***

   Deleting file D:\AutoPatcher\modules\Components\__msxml\MSXML4SP2_enu.apm_files\msxml4-KB936181-enu.exe

   Missing file D:\AutoPatcher\modules\Components\__msxml\MSXML4SP2_enu.apm_files\msxml4-KB936181-enu.exe
	 Item MSXML 4.0 Update is missing. Adding its download to the queue.
	 --Adding http://download.microsoft.com/download/9/4/2/9422e6b6-08ee-49cb-9f05-6c6ee755389e/msxml4-KB936181-enu.exe--
temp_bin\autopatcher_xp_2003_x64_enu.script
	  Item=MSXML 4.0 Update

	  DetectFile=autopatcher:\modules\Components\__msxml\MSXML4SP2_enu.apm_files\msxml4-KB936181-enu.exe
	  DetectHash=12FAD7BF495F37F84683FE09B91987CC
	  DownloadFrom=http://download.microsoft.com/download/9/4/2/9422e6b6-08ee-49cb-9f05-6c6ee755389e/msxml4-KB936181-enu.exe
	  DownloadTo=autopatcher:\modules\Components\__msxml\MSXML4SP2_enu.apm_files\msxml4-KB936181-enu.exe
	  ExpectedSize=5652328
	  ExpectedHash=12FAD7BF495F37F84683FE09B91987CC
AP script is deleting KB936181 and then download it again...

IF KB936181 has been superceded by KB954430 then
if KB936181 exists - delete it
In no way should AP download it again

If KB936181 has NOT been superceded then
if KB936181 exists - check on the file size/hash and if any difference then download
if KB936181 does not exists - then download

   KB936181
   http://support.microsoft.com/?kbid=936181
   http://www.microsoft.com/technet/security/bulletin/ms07-042.mspx
   http://www.microsoft.com/downloads/details.aspx?FamilyId=021E12F5-CB46-43DF-A2B8-185639BA2807
   Applies to:
	  Windows 2000 SP4
	  Windows XP SP2 & Windows XP SP3
	  Windows XP Professional x64 & Windows XP Professional x64 SP2
	  Windows Server 2003 SP1 & Windows Server 2003 SP2
	  Windows Server 2003 x64 & Windows Server 2003 x64 SP2
	  Windows Server 2003 SP1 (Itanium) & Windows Server 2003 SP2 (Itanium)
	  Windows Vista & Windows Vista SP1
	  Windows Vista x64 & Windows Vista x64 SP1
	  Windows Server 2008
	  Windows Server 2008 x64
	  Windows Server 2008 (Itanium)
   KB954430
   http://support.microsoft.com/?kbid=954430
   http://www.microsoft.com/technet/security/bulletin/MS08-069.mspx
   http://www.microsoft.com/downloads/details.aspx?FamilyId=96a4413c-5261-4f69-83d0-932c430abd14
   Applies to:
	  Windows 2000 SP4
	  Windows XP SP2 & Windows XP SP3
	  Windows XP Professional x64 & Windows XP Professional x64 SP2
	  Windows Server 2003 SP1 & Windows Server 2003 SP2
	  Windows Server 2003 x64 & Windows Server 2003 x64 SP2
	  Windows Server 2003 SP1 (Itanium) & Windows Server 2003 SP2 (Itanium)
	  Windows Vista & Windows Vista SP1
	  Windows Vista x64 & Windows Vista x64 SP1
	  Windows Server 2008
	  Windows Server 2008 x64
	  Windows Server 2008 (Itanium)
I have manually downloaded msxml4-KB936181-enu.exe from Microsoft website (http://www.microsoft.com/downloads/details...B8-185639BA2807) and it is identical with the one that AP is deleting and then downloading again.

This happens everytime I update

2. Windows Update Agent x64

modules\Components\WindowsUpdate_x64.apm
	   SIZE: 1,211
   MD5 HASH: EE8E6F7E7DD652AFA58D9BDC4251615F
APUP.LOG
   Detection error for file D:\AutoPatcher\modules\Components\WindowsUpdate_x64.apm
	   MD5 Hashes do NOT match. Expecting EE8E6F7E7DD652AFA58D9BDC4251615F, but found ed398e120357e6c6cca00a53bc8bee47!!!
	 Item AutoPatcher Components Modules is missing. Adding its download to the queue.
	 --Adding http://www.autopatcher.com/releases/english/windows_components_xp_2003_x64_enu.zip--
temp_bin\autopatcher_xp_2003_x64_enu.script
	  Item=AutoPatcher Components Modules

	  DetectFile=autopatcher:\modules\Components\WindowsUpdate_x64.apm
	  DetectHash=EE8E6F7E7DD652AFA58D9BDC4251615F
temp_bin\autopatcher_vista_x64.script
	  Item=AutoPatcher Components Modules

	  DetectFile=autopatcher:\modules\Components\WindowsUpdate_x64.apm
	  DetectHash=ED398E120357E6C6CCA00A53BC8BEE47
The error is because of confusion between VISTA x64 & XP x64

This happens everytime I update

ALSO...

Modules\Components\WindowsUpdate_x64_files\windowsupdateagent30-x64.exe
CORRECT
	VERSION: 7.2.6001.788
	   SIZE: 7,040,352
   MD5 HASH: 8D7C203B54379F275C86939FC7181B0C
   DOWNLOAD: http://download.windowsupdate.com/windowsupdate/redist/standalone/7.2.6001.788/windowsupdateagent30-x64.exe
INCORRECT
	VERSION: 7.2.6001.784
	   SIZE: 7,048,216
   MD5 HASH: 00281E3CC1284669F61C68C7DE042C2B
   DOWNLOAD: http://download.windowsupdate.com/windowsupdate/redist/standalone/7.2.6001.784/windowsupdateagent30-x64.exe
APUP.LOG
   Detection error for file D:\AutoPatcher\modules\Components\WindowsUpdate_x64_files\WindowsUpdateAgent30-x64.exe
	   MD5 Hashes do NOT match. Expecting 00281E3CC1284669F61C68C7DE042C2B, but found 8d7c203b54379f275c86939fc7181b0c!!!
	 Item WindowsUpdateAgent30-x64.exe failed detection. Adding its download to the queue.
	 --Adding http://download.windowsupdate.com/windowsupdate/redist/standalone/7.2.6001.784/windowsupdateagent30-x64.exe--
temp_bin\autopatcher_vista_x64.script
	  Item=WindowsUpdateAgent30-x64.exe

	  DetectFile=autopatcher:\modules\Components\WindowsUpdate_x64_files\WindowsUpdateAgent30-x64.exe
	  DetectHash=8D7C203B54379F275C86939FC7181B0C
	  DownloadFrom=http://download.windowsupdate.com/windowsupdate/redist/standalone/7.2.6001.788/windowsupdateagent30-x64.exe
	  DownloadTo=autopatcher:\modules\Components\WindowsUpdate_x64_files\WindowsUpdateAgent30-x64.exe
	  ExpectedSize=7040352
	  ExpectedHash=8D7C203B54379F275C86939FC7181B0C
temp_bin\autopatcher_xp_2003_x64_enu.script
	  Item=WindowsUpdateAgent30-x64.exe

	  DetectFile=autopatcher:\modules\Components\WindowsUpdate_x64_files\WindowsUpdateAgent30-x64.exe
	  DetectHash=00281E3CC1284669F61C68C7DE042C2B
	  DownloadFrom=http://download.windowsupdate.com/windowsupdate/redist/standalone/7.2.6001.784/windowsupdateagent30-x64.exe
	  DownloadTo=autopatcher:\modules\Components\WindowsUpdate_x64_files\WindowsUpdateAgent30-x64.exe
	  ExpectedSize=7048216
	  ExpectedHash=00281E3CC1284669F61C68C7DE042C2B
There seems to be confusion between VISTA x64 & XP x64

AP is epxecting 7.2.6001.784 but downloading from 7.2.6001.788 and then failing

As you can see the URLs are different (.../standalone/7.2.6001.784/windowsupdateagent30-x64.exe & .../standalone/7.2.6001.788/windowsupdateagent30-x64.exe)

This happens everytime I update

3. Detection in Java Runtime Environment (JRE) Version 6 Update 10 (32 bit & 64 bit)

Modules\AddOns\javajre_x64.apm
INCORRECT
   [DetectionRegistry]
   RegistryPath=HKLM\Software\JavaSoft\Java Web Start
   KeyName=CurrentVersion
   KeyValue=1.6.0_10
CORRECT
   [DetectionRegistry]
   RegistryPath=HKLM\Software\JavaSoft\Java Runtime Environment
   KeyName=Java6FamilyVersion
   KeyValue=1.6.0_10
Modules\AddOns\javajre_x86.apm
INCORRECT
   [DetectionRegistry]
   RegistryPath=HKLM\Software\JavaSoft\Java Web Start
   KeyName=CurrentVersion
   KeyValue=1.6.0_10
CORRECT
   [DetectionRegistry]
   RegistryPath=HKLM\Software\JavaSoft\Java Runtime Environment
   KeyName=Java6FamilyVersion
   KeyValue=1.6.0_10
I have installed JRE 1.6.0 Update 10 (64 bit) and I have taken these values from my registry.

There is another key that could be used; HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\1.6.0_10 but I do not know how this would be represented in the module.

Also it would appear that the next release would create another key of the same type i.e.HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\1.6.0_??

I think that my check for Java6FamilyVersion would be suffice, at least until version 7

I am not sure if it applies for the 32 bit systems.

Please feel free to pass these findings on to admins of the other versions of AP, if its of benefit. If I can be of any help let me know.

And keep up the great work you are all doing.

With many thanks
E
Quote

James's Photo James 02 Dec 2008

Hi excalibur, thanks for the report.

The first two errors are because the XP 64-bit script is not up-to-date (as you probably have already realised). What is happening, when the XP 64-bit script is run in the same folder as the other (more recent) scripts is that it is downloading the two old files that you list, which are then deleted by the instructions in any of the later scripts.

We will try and fix this as soon as we are able. Until the XP 64-bit script is updated there is no solution, other than to download it separately to a folder tree of its own.

--
Quote