Thoughts about setup and deployment issues, WiX, XNA, the .NET Framework and Visual Studio
All postings are provided AS IS with no warranties, and confer no rights. Additionally, views expressed herein are my own and not those of my employer, Microsoft.
I heard from a couple of customers today who ran into a new (to me) setup problem while installing Update Rollup 2 for Windows XP Media Center Edition 2005, and I decided to post it here as well in case anyone else sees it. The customers who saw this issue visited Windows Update and attempted to install Update Rollup 2, but it failed and reported a generic "setup failed" message.
In the cases I have seen so far, one of the prereqisite packages for Update Rollup 2 (a networking control panel hotfix described by KB899337) failed to install because there was another hotfix installed that updates one of the same files (an Internet Explorer cumulative security update described by KB912812).
How can I workaround this issue?
In the cases I have seen so far, uninstalling Security Update for Windows XP (KB912812) and then attempting to reinstall Update Rollup 2 has proven successful. The following steps can be used to accomplish this:
How can I tell if this issue is the one affecting my machine?
You can diagnose this issue by looking at a couple of the log files that Update Rollup 2 setup creates. First, you can open %windir%\mcsetup.log in a text editor such as Notepad. If KB899337 is the package that fails on your system, you will see the following entry at the end of mcsetup.log:
Generic Package: 04/18/06. 19:33:02Looking for existing install of the generic packageCreating Process: WindowsXP-KB899337-v2-x86.exe /quiet /norestartProcess returned 0x00000643
The 0x00000643 return code (which translates to 1603 in decimal) represents the return code for a generic error in a Windows hotfix package.
Now, you can look at %windir%\kb899337.log to determine the exact reason why this hotfix failed to install. In the cases I have seen so far, the error in kb899337.log looks like the following:
2.406: AnalyzeForBranching: g_bMigrate set to TRUE because target file c:\windows\system32\xpsp3res.dll has branch sp2gdr which is smaller than branch for sp2qfe....12.609: MigrateHotfix: Migrating hotfix KB91281212.641: Rename failed. Destination path c:\windows\$NtUninstallKB912812_0$ exists.12.641: MigrateHotfixes: Migration of KB912812 failed12.641: DoInstallation: Migration failed
Hi,
I've got this error message while tryinh to install RU2. Any ideas to workaround this one?
Thanks
Andrew
0.641: ================================================================================
0.641: 2006/10/12 23:39:28.109 (local)
0.641: t:\a957fd26fcff9e9ff083\update\update.exe (version 6.1.22.4)
0.657: Hotfix started with following command line: /quiet /norestart
1.032: ---- Old Information In The Registry ------
1.032: Source:C:\WINDOWS\system32\SET19.tmp (5.1.2600.2627)
1.032: Destination:C:\WINDOWS\system32\termsrv.dll (5.1.2600.2180)
1.032: ---- New Information In The Registry ------
1.032: SetProductTypes: InfProductBuildType=BuildType.IP
1.032: SetAltOsLoaderPath: No section uses DirId 65701; done.
1.047: DoInstallation: FetchSourceURL for t:\a957fd26fcff9e9ff083\update\update_SP2QFE.inf failed
1.047: CreateUninstall = 1,Directory = C:\WINDOWS\$NtUninstallKB899337$
1.047: LoadFileQueues: UpdSpGetSourceFileLocation for halmacpi.dll failed: 0xe0000102
1.047: BuildCabinetManifest: update.url absent
1.047: Starting AnalyzeComponents
1.047: AnalyzePhaseZero used 0 ticks
1.047: No c:\windows\INF\updtblk.inf file.
1.047: SetupFindFirstLine in LoadExclusionList Failed with error: 0xe0000102
1.047: Enumerating Devices of nettrans, GUID {4d36e975-e325-11ce-bfc1-08002be10318}
1.110: Enumerating Devices of netservice, GUID {4d36e974-e325-11ce-bfc1-08002be10318}
1.172: OEM file scan used 125 ticks
1.454: AnalyzePhaseOne: used 407 ticks
1.454: AnalyzeComponents: Hotpatch analysis disabled; skipping.
1.454: AnalyzeComponents: Hotpatching is disabled.
1.454: FindFirstFile c:\windows\$hf_mig$\*.*
1.485: KB899337 Setup encountered an error: The update.ver file is not correct.
1.516: KB899337 Setup encountered an error: The update.ver file is not correct.
1.547: AnalyzeForBranching: g_bMigrate set to TRUE because target file c:\windows\system32\xpsp3res.dll has branch sp2gdr which is smaller than branch for sp2qfe
1.594: AnalyzeForBranching used 47 ticks.
1.594: AnalyzePhaseTwo used 0 ticks
1.594: AnalyzePhaseThree used 0 ticks
1.594: AnalyzePhaseFive used 0 ticks
1.594: AnalyzePhaseSix used 0 ticks
1.594: AnalyzeComponents used 547 ticks
1.594: Downloading 0 files
1.594: bPatchMode = FALSE
1.594: Inventory complete: ReturnStatus=0, 547 ticks
1.594: Num Ticks for invent : 547
1.594: VerifySize: Unable to verify size: Source = NULL: c:\windows\inf\HFX1C.tmp
1.594: Copied file: c:\windows\inf\branches.inf
4.485: Conditional load of section MediaCenter.Reg.Install.Condition succeeded
4.485: Allocation size of drive C: is 4096 bytes, free space = 1996775424 bytes
4.485: AnalyzeDiskUsage: Skipping EstimateDiskUsageForUninstall.
4.485: Drive C: free 1904MB req: 20MB w/uninstall: NOT CALCULATED.
4.485: CabinetBuild complete
4.485: Num Ticks for Cabinet build : 2891
4.485: DynamicStrings section not defined or empty.
4.516: FileInUse:: need to restart already, turn off
5.516: LoadFileQueues: UpdSpGetSourceFileLocation for halmacpi.dll failed: 0xe0000102
5.594: Num Ticks for Backup : 1109
5.688: Num Ticks for creating uninst inf : 94
5.704: Registering Uninstall Program for -> KB899337, KB899337 , 0x0
5.704: LoadFileQueues: UpdSpGetSourceFileLocation for halmacpi.dll failed: 0xe0000102
8.532: System Restore Point set.
8.657: PFE2: Not avoiding Per File Exceptions.
8.672: GetCatVersion: Failed to retrieve version information from C:\WINDOWS\system32\CatRoot\{F750E6C3-38EE-11D1-85E5-00C04FC295EE}\KB899337.cat with error 0x57
9.016: Copied file: C:\WINDOWS\system32\DRIVERS\ndisuio.sys
9.032: Copied file: C:\WINDOWS\system32\wzcsvc.dll
9.172: Copied file (delayed): C:\WINDOWS\system32\SET1E.tmp
9.172: Copied file: C:\WINDOWS\system32\wzcsapi.dll
9.282: Copied file (delayed): C:\WINDOWS\system32\SET1F.tmp
9.297: Copied file: C:\WINDOWS\system32\wzcdlg.dll
9.360: Copied file (delayed): C:\WINDOWS\system32\SET20.tmp
9.375: Copied file: C:\WINDOWS\system32\netshell.dll
9.469: Copied file (delayed): C:\WINDOWS\system32\SET21.tmp
9.469: Copied file: C:\WINDOWS\system32\DllCache\wzcdlg.dll
9.579: Copied file (delayed): C:\WINDOWS\system32\DllCache\SET22.tmp
9.579: Copied file: C:\WINDOWS\system32\DllCache\netshell.dll
9.641: Copied file (delayed): C:\WINDOWS\system32\DllCache\SET23.tmp
9.641: Copied file: C:\WINDOWS\Driver Cache\i386\wzcsvc.dll
9.657: Copied file: C:\WINDOWS\Driver Cache\i386\wzcsapi.dll
9.672: Copied file: C:\WINDOWS\Driver Cache\i386\ndisuio.sys
9.672: DoInstallation: Installing assemblies with source root path: t:\a957fd26fcff9e9ff083\
9.672: Num Ticks for Copying files : 3984
9.704: Num Ticks for Reg update and deleting 0 size files : 32
9.704: DoInstallation: ApplyAdminSystemAclsRecursive for c:\windows\$hf_mig$\KB899337 failed; error=0x00000003
9.704: ---- Old Information In The Registry ------
9.704: Source:C:\WINDOWS\system32\SET19.tmp (5.1.2600.2627)
9.704: Destination:C:\WINDOWS\system32\termsrv.dll (5.1.2600.2180)
9.735: Source:C:\WINDOWS\system32\SET1E.tmp (5.1.2600.2703)
9.735: Destination:C:\WINDOWS\system32\wzcsvc.dll (5.1.2600.2180)
9.735: Source:C:\WINDOWS\system32\SET1F.tmp (5.1.2600.2703)
9.735: Destination:C:\WINDOWS\system32\wzcsapi.dll (5.1.2600.2180)
9.750: Source:C:\WINDOWS\system32\SET20.tmp (5.1.2600.2703)
9.750: Destination:C:\WINDOWS\system32\wzcdlg.dll (5.1.2600.2180)
9.766: Source:C:\WINDOWS\system32\SET21.tmp (5.1.2600.2703)
9.766: Destination:C:\WINDOWS\system32\netshell.dll (5.1.2600.2180)
9.766: Source:C:\WINDOWS\system32\DllCache\SET22.tmp (5.1.2600.2703)
9.766: Destination:C:\WINDOWS\system32\DllCache\wzcdlg.dll (5.1.2600.2180)
9.766: Source:C:\WINDOWS\system32\DllCache\SET23.tmp (5.1.2600.2703)
9.782: Destination:C:\WINDOWS\system32\DllCache\netshell.dll (5.1.2600.2180)
9.782: ---- New Information In The Registry ------
9.782: Source:C:\WINDOWS\system32\SET19.tmp (5.1.2600.2627)
9.782: Destination:C:\WINDOWS\system32\termsrv.dll (5.1.2600.2180)
9.782: Source:C:\WINDOWS\system32\SET1E.tmp (5.1.2600.2703)
9.782: Destination:C:\WINDOWS\system32\wzcsvc.dll (5.1.2600.2180)
9.782: Source:C:\WINDOWS\system32\SET1F.tmp (5.1.2600.2703)
9.782: Destination:C:\WINDOWS\system32\wzcsapi.dll (5.1.2600.2180)
9.782: Source:C:\WINDOWS\system32\SET20.tmp (5.1.2600.2703)
9.782: Destination:C:\WINDOWS\system32\wzcdlg.dll (5.1.2600.2180)
9.782: Source:C:\WINDOWS\system32\SET21.tmp (5.1.2600.2703)
9.782: Destination:C:\WINDOWS\system32\netshell.dll (5.1.2600.2180)
9.782: Source:C:\WINDOWS\system32\DllCache\SET22.tmp (5.1.2600.2703)
9.782: Destination:C:\WINDOWS\system32\DllCache\wzcdlg.dll (5.1.2600.2180)
9.782: Source:C:\WINDOWS\system32\DllCache\SET23.tmp (5.1.2600.2703)
10.766: UpdateSpUpdSvcInf: Source [ProcessesToRunAfterReboot] section is empty; nothing to do.
10.766: MigrateHotfix: Migrating hotfix KB918899
10.766: Migrating QFE KB918899 with command line: update.exe -Z -Q -B:sp2qfe
11.954: Update.exe failed 1603.
11.954: MigrateHotfixes: Migration of KB918899 failed
11.954: DoInstallation: Migration failed
12.079: Failed to migrate dependent packages.
12.079: Update.exe extended error code = 0xf0ea
12.079: Update.exe return code was masked to 0x643 for MSI custom action compliance.
Hi Andrewrc - I would suggest following the steps listed in this blog post, except where it says to remove KB912812, instead you should remove KB918899. Hopefully this will help.
This article serves as a central location for all links to troubleshooting documentation that has been
Hey there. I'm glad you wrote this - it's the only place I've found even a CLUE of how to fix this Rollup 2 install issue. I hate to spam with code, but I was wondering if you could tell me how to fix it? :/
0.546: 2006/11/25 17:02:34.718 (local)
0.546: c:\3c0555c2d626af95416d27a7c6\update\update.exe (version 6.1.22.4)
0.546: Hotfix started with following command line: /quiet /norestart
1.078: In Function TestVolatileFlag, line 11660, RegOpenKeyEx failed with error 0x2
1.078: In Function TestVolatileFlag, line 11692, RegOpenKeyEx failed with error 0x2
1.078: DoInstallation: CleanPFR failed: 0x2
1.078: SetProductTypes: InfProductBuildType=BuildType.IP
1.078: SetAltOsLoaderPath: No section uses DirId 65701; done.
1.078: DoInstallation: FetchSourceURL for c:\3c0555c2d626af95416d27a7c6\update\update_SP2QFE.inf failed
1.078: CreateUninstall = 0,Directory = C:\WINDOWS\$NtUninstallKB899337$
1.078: LoadFileQueues: UpdSpGetSourceFileLocation for halmacpi.dll failed: 0xe0000102
1.078: BuildCabinetManifest: update.url absent
1.078: Starting AnalyzeComponents
1.093: AnalyzePhaseZero used 0 ticks
1.093: No c:\windows\INF\updtblk.inf file.
1.093: SetupFindFirstLine in LoadExclusionList Failed with error: 0xe0000102
1.093: Enumerating Devices of nettrans, GUID {4d36e975-e325-11ce-bfc1-08002be10318}
1.125: Enumerating Devices of netservice, GUID {4d36e974-e325-11ce-bfc1-08002be10318}
1.171: OEM file scan used 78 ticks
1.750: AnalyzePhaseOne: used 657 ticks
1.750: AnalyzeComponents: Hotpatch analysis disabled; skipping.
1.750: AnalyzeComponents: Hotpatching is disabled.
1.750: FindFirstFile c:\windows\$hf_mig$\*.*
1.750: KB899337 Setup encountered an error: The update.ver file is not correct.
1.765: KB899337 Setup encountered an error: The update.ver file is not correct.
1.781: KB899337 Setup encountered an error: The update.ver file is not correct.
1.796: KB899337 Setup encountered an error: The update.ver file is not correct.
1.843: AnalyzeForBranching: g_bMigrate set to TRUE because target file c:\windows\system32\xpsp3res.dll has branch sp2gdr which is smaller than branch for sp2qfe
1.843: AnalyzeForBranching used 31 ticks.
1.843: AnalyzePhaseTwo used 0 ticks
1.843: AnalyzePhaseThree used 0 ticks
1.843: AnalyzePhaseFive used 0 ticks
1.859: AnalyzePhaseSix used 16 ticks
1.859: AnalyzeComponents used 766 ticks
1.859: Downloading 0 files
1.859: bPatchMode = FALSE
1.859: Inventory complete: ReturnStatus=0, 781 ticks
1.859: Num Ticks for invent : 781
1.859: VerifySize: Unable to verify size: Source = NULL: c:\windows\inf\HFXF.tmp
1.859: Copied file: c:\windows\inf\branches.inf
13.312: Conditional load of section MediaCenter.Reg.Install.Condition succeeded
13.312: Allocation size of drive C: is 4096 bytes, free space = 59507331072 bytes
13.312: Drive C: free 56750MB req: 5MB w/uninstall 0MB
13.312: CabinetBuild complete
13.312: Num Ticks for Cabinet build : 11453
13.312: DynamicStrings section not defined or empty.
13.312: FileInUse:: need to restart already, turn off
14.328: LoadFileQueues: UpdSpGetSourceFileLocation for halmacpi.dll failed: 0xe0000102
17.390: System Restore Point set.
17.453: PFE2: Not avoiding Per File Exceptions.
17.875: DoInstallation: Installing assemblies with source root path: c:\3c0555c2d626af95416d27a7c6\
17.875: Num Ticks for Copying files : 4563
17.875: Num Ticks for Reg update and deleting 0 size files : 0
17.875: DoInstallation: ApplyAdminSystemAclsRecursive for c:\windows\$hf_mig$\KB899337 failed; error=0x00000003
17.875: UpdateSpUpdSvcInf: Source [ProcessesToRunAfterReboot] section is empty; nothing to do.
17.875: MigrateHotfix: Migrating hotfix KB920213
17.921: Rename failed. Destination path c:\windows\$NtUninstallKB920213_0$ exists.
17.921: MigrateHotfixes: Migration of KB920213 failed
17.921: DoInstallation: Migration failed
18.234: Failed to migrate dependent packages.
18.234: Update.exe extended error code = 0xf0ea
18.234: Update.exe return code was masked to 0x643 for MSI custom action compliance.
Gah! Sorry, I think I posted the wrong bit of log. I'm going to assume that you're moderating comments, otherwise I'd just delete the previous post. Really sorry about that. :(
These are the correct lines:
0.547: 2006/11/25 18:28:44.265 (local)
0.547: c:\9aa909fec91d11ebe57ac0\update\update.exe (version 6.1.22.4)
0.547: Hotfix started with following command line: /quiet /norestart
1.110: In Function TestVolatileFlag, line 11660, RegOpenKeyEx failed with error 0x2
1.110: In Function TestVolatileFlag, line 11692, RegOpenKeyEx failed with error 0x2
1.110: DoInstallation: CleanPFR failed: 0x2
1.110: SetProductTypes: InfProductBuildType=BuildType.IP
1.110: SetAltOsLoaderPath: No section uses DirId 65701; done.
1.110: DoInstallation: FetchSourceURL for c:\9aa909fec91d11ebe57ac0\update\update_SP2QFE.inf failed
1.110: CreateUninstall = 0,Directory = C:\WINDOWS\$NtUninstallKB899337$
1.110: LoadFileQueues: UpdSpGetSourceFileLocation for halmacpi.dll failed: 0xe0000102
1.110: BuildCabinetManifest: update.url absent
1.125: Starting AnalyzeComponents
1.125: AnalyzePhaseZero used 0 ticks
1.125: No c:\windows\INF\updtblk.inf file.
1.125: SetupFindFirstLine in LoadExclusionList Failed with error: 0xe0000102
1.125: Enumerating Devices of nettrans, GUID {4d36e975-e325-11ce-bfc1-08002be10318}
1.157: Enumerating Devices of netservice, GUID {4d36e974-e325-11ce-bfc1-08002be10318}
1.204: OEM file scan used 79 ticks
1.813: AnalyzePhaseOne: used 688 ticks
1.813: AnalyzeComponents: Hotpatch analysis disabled; skipping.
1.813: AnalyzeComponents: Hotpatching is disabled.
1.829: FindFirstFile c:\windows\$hf_mig$\*.*
1.829: KB899337 Setup encountered an error: The update.ver file is not correct.
1.844: KB899337 Setup encountered an error: The update.ver file is not correct.
1.860: KB899337 Setup encountered an error: The update.ver file is not correct.
1.875: KB899337 Setup encountered an error: The update.ver file is not correct.
1.907: AnalyzeForBranching: g_bMigrate set to TRUE because target file c:\windows\system32\xpsp3res.dll has branch sp2gdr which is smaller than branch for sp2qfe
1.907: AnalyzeForBranching used 16 ticks.
1.907: AnalyzePhaseTwo used 0 ticks
1.907: AnalyzePhaseThree used 0 ticks
1.907: AnalyzePhaseFive used 0 ticks
1.922: AnalyzePhaseSix used 15 ticks
1.922: AnalyzeComponents used 797 ticks
1.922: Downloading 0 files
1.922: bPatchMode = FALSE
1.922: Inventory complete: ReturnStatus=0, 812 ticks
1.922: Num Ticks for invent : 812
1.922: VerifySize: Unable to verify size: Source = NULL: c:\windows\inf\HFXD.tmp
1.938: Copied file: c:\windows\inf\branches.inf
13.438: Conditional load of section MediaCenter.Reg.Install.Condition succeeded
13.438: Allocation size of drive C: is 4096 bytes, free space = 59323420672 bytes
13.438: Drive C: free 56575MB req: 5MB w/uninstall 0MB
13.454: CabinetBuild complete
13.454: Num Ticks for Cabinet build : 11532
13.454: DynamicStrings section not defined or empty.
13.454: FileInUse:: need to restart already, turn off
14.454: LoadFileQueues: UpdSpGetSourceFileLocation for halmacpi.dll failed: 0xe0000102
17.375: System Restore Point set.
17.438: PFE2: Not avoiding Per File Exceptions.
17.719: DoInstallation: Installing assemblies with source root path: c:\9aa909fec91d11ebe57ac0\
17.719: Num Ticks for Copying files : 4265
17.735: Num Ticks for Reg update and deleting 0 size files : 16
17.735: DoInstallation: ApplyAdminSystemAclsRecursive for c:\windows\$hf_mig$\KB899337 failed; error=0x00000003
17.735: UpdateSpUpdSvcInf: Source [ProcessesToRunAfterReboot] section is empty; nothing to do.
17.735: MigrateHotfix: Migrating hotfix KB922760
17.797: Migrating QFE KB922760 with command line: update.exe -Z -Q -B:sp2qfe
19.219: Update.exe failed 1603.
19.219: MigrateHotfixes: Migration of KB922760 failed
19.219: DoInstallation: Migration failed
19.266: Failed to migrate dependent packages.
19.266: Update.exe extended error code = 0xf0ea
19.266: Update.exe return code was masked to 0x643 for MSI custom action compliance.
Hi Vekkul - The important lines in your log file are towards the end. From your first post:
And from your 2nd post:
You will need to uninstall KB920213 and/or KB922760 and try to install Update Rollup 2 again. Hopefully this will help you resolve this issue. Please let me know how it goes.
I have previously written about a couple of instances where Update Rollup 2 for Windows XP Media Center