Microsoft KB Archive/940185

= Error message when you install Windows Server 2003 Service Pack 1 (SP1): “Service Pack 1 Setup encountered an error: An error in updating your system has occurred” =

Article ID: 940185

Article Last Modified on 8/14/2007

-

APPLIES TO


 * Microsoft Windows Server 2003, Standard Edition (32-bit x86)
 * Microsoft Windows Server 2003, Web Edition
 * Microsoft Windows Server 2003, Datacenter Edition (32-bit x86)
 * Microsoft Windows Server 2003, Enterprise Edition (32-bit x86)

-



SYMPTOMS
When you install Windows Server 2003 Service Pack 1 (SP1), you may receive the following error message:

Service Pack 1 Setup encountered an error: An error in updating your system has occurred



WORKAROUND
To work around this problem, determine the return code in the Svcpack.log file, and then follow the steps that are appropriate for your situation.

The return code is 2
Assign the TEMP variable and the TMP variable to a valid directory. Make sure that you do not assign these variables to a virtual directory. For example, if Windows is installed on the local drive C in the WINDOWS directory, add the following lines in the Autoexec.bat file:

SET TEMP=C:\WINDOWS\TEMP

SET TMP=C:\WINDOWS\TEMP

The return code is 3
 Rebuild the Windows Management Instrumentation (WMI) Repository. Use the WMI MOF compiler (mofcomp.exe) to compile an MOF file. To do this, type the following command at the command prompt, and then press ENTER:

\system32\wbem\mofcomp.exe

 Run the Setup program for the Windows Server 2003 SP1.

The return code is 128
 Click OK to the error message, and then restart the computer. Copy the \System32\Oleaut32.dll file to the  \System32 folder. Run the Setup program for Windows Server 2003 SP1.</li> After the installation is complete, do the following:  When you are prompted to restart the computer, delete the Oleaut32.dll file from the \System32 folder. If you cannot delete the Oleaut32.dll file, go to step 4b.</li> Rename the Oleaut32.dll file, and then delete the file after you restart the system.</li></ol> </li></ol>

<div class="moreinformation_section">

MORE INFORMATION
For more information about how to rebuild the WMI Repository, visit the following TechNet Web site:

http://www.microsoft.com/technet/community/en-us/management/wmi_faq.mspx

Keywords: kberrmsg kbtshoot kbprb KB940185

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.