Windows XP Professional SP-1 (32-bit) patch script
Last Updated: 2005-11-27
@echo off
REM ##############################################################################
REM
REM Windows XP Professional SP-1 (32-bit) patch script by Doc Rice v1.1
REM This script requires the use of REG.EXE from the Windows NT 4.0 Resource Kit
REM and the SLEEP.EXE utility.
REM
REM An updated version of REG.EXE utility can be found at:
REM
REM ftp://ftp.microsoft.com/bussys/winnt/winnt-public/reskit/nt40/i386/reg_x86.exe
REM
REM SLEEP.EXE can be found at:
REM
REM http://www2.gol.com/users/trane/programming/programming.html
REM
REM
REM WARNING: This script assumes your Windows XP OS has been installed with
REM defaults and currently has IE 6 SP-1.
REM
REM Please see http://winpatch.homeip.net for updated information.
REM
REM ##############################################################################
color 1F
title Windows XP SP-1 Hotfix Install
.\REG\REG.EXE QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\Windows XP\SP1\Q324720" > NUL || goto no-sp1
echo Installing patches for Windows XP SP-1...
echo --------------------------------------------------------------------------------
echo Patch list updated as of 07/13/2004.
echo.
echo Today is %date%.
echo.
echo.
REM -------------------------------------------------------------
echo Checking for MS02-050...
.\REG\REG.EXE QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\Windows XP\SP2\Q329115\Description" /s || echo Patching for Q329115... && .\OS\Q329115\Q329115_WXP_SP2_x86_ENU.exe -z -q
echo.
echo Checking for MS02-054...
.\REG\REG.EXE QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\Windows XP\SP2\Q329048\Description" /s || echo Patching for Q329048... && .\OS\Q329048\Q329048_WXP_SP2_x86_ENU.exe -z -q
echo.
echo Checking for MS02-055...
.\REG\REG.EXE QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\Windows XP\SP2\Q323255\Description" /s || echo Patching for Q323255... && .\OS\Q323255\Q323255_WXP_SP2_x86_ENU.exe -z -q
echo.
echo Checking for MS02-063...
.\REG\REG.EXE QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\Windows XP\SP2\Q329834\Description" /s || echo Patching for Q329834... && .\OS\Q329834\Q329834_WXP_SP2_x86_ENU.exe -z -q
echo.
echo Checking for MS02-070...
.\REG\REG.EXE QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\Windows XP\SP2\Q329170\Description" /s || echo Patching for Q329170... && .\OS\Q329170\Q329170_WXP_SP2_x86_ENU.exe -z -q
echo.
echo Checking for MS02-071...
.\REG\REG.EXE QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\Windows XP\SP2\Q328310\Description" /s || echo Patching for Q328310... && .\OS\Q328310\Q328310_WXP_SP2_x86_ENU.exe -z -q
echo.
echo Checking for MS02-072...
.\REG\REG.EXE QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\Windows XP\SP2\Q329390\Description" /s || echo Patching for Q329390... && .\OS\Q329390\Q329390_WXP_SP2_x86_ENU.exe -z -q
echo.
echo Checking for MS03-001...
.\REG\REG.EXE QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\Windows XP\SP2\Q810833\Description" /s || echo Patching for Q810833... && .\OS\Q810833\Q810833_WXP_SP2_x86_ENU.exe -z -q
echo.
echo Checking for MS03-005...
.\REG\REG.EXE QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\Windows XP\SP2\Q810577\Description" /s || echo Patching for Q810577... && .\OS\Q810577\Q810577_WXP_SP2_x86_ENU.exe -z -q
echo.
echo Patching for MS03-008... & .\OS\Q814078\js56nen.exe /q /r:n
echo.
echo Checking for MS03-010...
.\REG\REG.EXE QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\Windows XP\SP2\Q331953\Description" /s || echo Patching for Q331953... && .\OS\Q331953\Q331953_WXP_SP2_x86_ENU.exe -z -q
echo.
echo Patching for MS03-011... & .\OS\Q816093\msjavwu.exe /c:"javatrig.exe /q /n" /q
echo.
echo Checking for MS03-013...
.\REG\REG.EXE QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\Windows XP\SP2\Q811493\Description" /s || echo Patching for Q811493... && .\OS\Q811493\Q811493_WXP_SP2_x86_ENU.exe /u /q /z
echo.
echo Checking for MS03-007...
.\REG\REG.EXE QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\Windows XP\SP2\Q815021\Description" /s || echo Patching for Q815021... && .\OS\Q815021\Q815021_WXP_SP2_x86_ENU.exe /u /q /z
echo.
echo Checking for MS03-023...
.\REG\REG.EXE QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\Windows XP\SP2\KB823559\Description" /s || echo Patching for Q823559... && .\OS\Q823559\WindowsXP-KB823559-x86-ENU.exe /u /q /z
echo.
echo Checking for MS03-024...
.\REG\REG.EXE QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\Windows XP\SP2\Q817606\Description" /s || echo Patching for Q817606... && .\OS\Q817606\Q817606_WXP_SP2_x86_ENU.exe /u /q /z
echo.
echo Checking for MS03-026...
.\REG\REG.EXE QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\Windows XP\SP2\KB823980\Description" /s || echo Patching for Q823980... && .\OS\Q823980\WindowsXP-KB823980-x86-ENU.exe /u /q /z
echo.
echo Checking for MS03-027...
.\REG\REG.EXE QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\Windows XP\SP2\KB821557\Description" /s || echo Patching for Q821557... && .\OS\Q821557\WindowsXP-KB821557-x86-ENU.exe /u /q /z
echo.
echo Checking for MS03-030...
.\REG\REG.EXE QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\Windows XP\SP2\Q819696\Description" /s || echo Patching for Q819696... && .\OS\Q819696\Q819696_WXP_SP2_x86_ENU.exe /u /q /z
echo.
echo Checking for MS03-034...
.\REG\REG.EXE QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\Windows XP\SP2\KB824105\Filelist" /s || echo Patching for Q824105... && .\OS\Q824105\WindowsXP-KB824105-x86-ENU.exe /u /q /z
echo.
echo Checking for MS03-039...
.\REG\REG.EXE QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\Windows XP\SP2\KB824146\Description" /s || echo Patching for Q824146... && .\OS\Q824146\WindowsXP-KB824146-x86-ENU.exe /u /q /z
echo.
echo Checking for MS03-041...
.\REG\REG.EXE QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\Windows XP\SP2\KB823182\Description" /s || echo Patching for Q823182... && .\OS\Q823182\WindowsXP-KB823182-x86-ENU.exe /u /q /z
echo.
echo Checking for MS03-043...
.\REG\REG.EXE QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\Windows XP\SP2\KB828035\Description" /s || echo Patching for Q828035... && .\OS\Q828035\WindowsXP-KB828035-x86-ENU.exe /u /q /z
echo.
echo Checking for MS03-044...
.\REG\REG.EXE QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\Windows XP\SP2\KB825119\Description" /s || echo Patching for Q825119... && .\OS\Q825119\WindowsXP-KB825119-x86-ENU.exe /u /q /z
echo.
echo Checking for MS03-045...
.\REG\REG.EXE QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\Windows XP\SP2\KB824141\Description" /s || echo Patching for Q824141... && .\OS\Q824141\WindowsXP-KB824141-x86-ENU.exe /u /q /z
echo.
echo Checking for MS03-053...
.\REG\REG.EXE QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\Windows XP\SP2\KB810217\Description" /s || echo Patching for Q810217... && .\OS\Q810217\WindowsXP-KB810217-x86-ENU.exe /u /q /z
echo.
echo Checking for MS04-007...
.\REG\REG.EXE QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\Windows XP\SP2\KB828028\Filelist" /s || echo Patching for Q828028... && .\OS\Q828028\WindowsXP-KB828028-x86-ENU.exe /quiet /norestart
echo.
echo Checking for MS04-011...
.\REG\REG.EXE QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\Windows XP\SP2\KB835732\Filelist" /s || echo Patching for Q835732... && .\OS\Q835732\WindowsXP-KB835732-x86-ENU.EXE /quiet /norestart
echo.
echo Checking for MS04-012...
.\REG\REG.EXE QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\Windows XP\SP2\KB828741\Filelist" /s || echo Patching for Q828741... && .\OS\Q828741\WindowsXP-KB828741-x86-ENU.EXE /quiet /norestart
echo.
echo Checking for MS04-014...
.\REG\REG.EXE QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\Windows XP\SP2\KB837001\Filelist" /s || echo Patching for Q837001... && .\OS\Q837001\WindowsXP-KB837001-x86-ENU.EXE /quiet /norestart
echo.
echo Checking for MS04-015...
.\REG\REG.EXE QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\Windows XP\SP2\KB840374\Filelist" /s || echo Patching for Q840374... && .\OS\Q840374\WindowsXP-KB840374-x86-ENU.EXE /quiet /norestart
echo.
echo Checking for MS04-022...
.\REG\REG.EXE QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\Windows XP\SP2\KB841873\Filelist" /s || echo Patching for Q841873... && .\OS\Q841873\WindowsXP-KB841873-x86-ENU.EXE /quiet /norestart
echo.
echo Checking for MS04-023...
.\REG\REG.EXE QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\Windows XP\SP2\KB840315\Filelist" /s || echo Patching for Q840315... && .\OS\Q840315\WindowsXP-KB840315-x86-ENU.EXE /quiet /norestart
echo.
echo Checking for MS04-024...
.\REG\REG.EXE QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\Windows XP\SP2\KB839645\Filelist" /s || echo Patching for Q839645... && .\OS\Q839645\WindowsXP-KB839645-x86-ENU.EXE /quiet /norestart
REM -------------------------------------------------------------
echo.
echo.
echo Patching Internet Explorer 6 SP-1
echo --------------------------------------------------------------------------------
echo.
echo Patching for Q330994... & .\IE_60\Q330994\q330994.exe /q:a /r:n
setlocal
for /f "tokens=3" %%i in ('.\REG\REG.EXE QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Version"') do set IE_Version=%%i
if 6.0.2800.1106 == %IE_Version% (goto patch-ie6sp1) else (goto wmp)
:patch-ie6sp1
echo Checking for MS04-004...
.\REG\REG.EXE QUERY "HKEY_LOCAL_MACHINE\Software\Microsoft\Active Setup\Installed Components\{eddbec60-89cb-44ef-8291-0850fd28ff6a}\Version" /s || echo Patching for Q832894... && .\IE_60\Q832894\Q832894.exe /q:a /r:n
endlocal
:wmp
REM -------------------------------------------------------------
echo.
echo.
echo Patching Windows Media Player for Windows XP SP-1
echo.
echo Checking for Q817787...
.\REG\REG.EXE QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\Windows Media Player\wm817787\Description" /s || echo Patching for Q817787... && .\WMP\Q817787\WindowsMedia8-KB817787-x86-ENU.exe /q
REM -------------------------------------------------------------
echo.
echo.
echo Patching MDAC 2.7 SP-1
echo --------------------------------------------------------------------------------
echo.
echo.
echo Checking for Q832483...
.\REG\REG.EXE QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\DataAccess\Q8324838\Description" /s || echo Patching for Q832483... && .\MDAC\Q832483\ENU_Q832483_MDAC_x86.EXE /C:"dahotfix.exe /q /n" /q
REM -------------------------------------------------------------
echo.
echo.
echo Qchaining hotfixes...
echo.
.\Qchain\qchain.exe
REM -------------------------------------------------------------
color
echo.
echo.
echo Initial update process for Windows XP SP-1 completed. Please reboot
echo for all hotfixes to take effect and verify patch levels afterwards.
echo.
.\SLEEP\sleep.exe 03
goto end
:no-sp1
echo Service Pack 1 or 1a is not installed on this system. Please install
echo SP1 or SP1a before running this script.
echo.
pause
goto end
:end
No Comments yet .....
Add Your Comment:
Note: All posts require administrator approval. Please allow 24 hours for message approval.