If you download all the patches, copy them all into one directory,
rename a few (because some have names with "-v2" in them or don't quite
follow the general rule of "WindowsXP-KB######-x86-%LANG%.exe"), move
SP2 into its own subdirectory ('sp' in the case below) and have no
spaces in your directory names....

The script below integrates all of them into your specified install.
Watch for Word Wrap on your ends.
I could not integrate KB867282 successfully..  Keep that one out of the
patchdir..

Syntax (Three variables):

NAMEOFSCRIPT.CMD x:\LocationOfWindowsXPInstall\Directory
x:\LocationOfAllThePatches ENU_or_Appropriate_Language

--- Start Copying Below Here ---
@ECHO OFF
set sourcedir=%1
set patchdir=%2
Set lang=%3
set svcpackdir=%sourcedir%\i386\svcpack

echo Integrating Sevice Pack 2
if not exist %sourcedir%\win51ip.sp2 start /wait
%patchdir%\sp\WindowsXP-KB835935-SP2-%lang%.exe /integrate:%sourcedir%

ECHO Integrating KB885835
start /wait %patchdir%\patches\special\WindowsXP-KB885835-x86-%lang%.exe
/integrate:%sourcedir%

for /f %%L in (%svcpackdir%\HFINT.DAT) DO (
        if %%L==mrxsmb.sys (
                echo %%L.temp>>%svcpackdir%\HFINT.TMP
        ) ELSE (
                echo %%L>>%svcpackdir%\HFINT.TMP
        )
)
move /y %svcpackdir%\HFINT.TMP %svcpackdir%\HFINT.DAT

for %%U in (%patchdir%\patches\WindowsXP-KB??????-x86-%lang%.exe) DO (
        if not exist %svcpackdir%\%%U (
                @ECHO Now integrating %%U . . . 
                start /wait %%U /integrate:%sourcedir% /q
        )
)

for /f %%L in (%svcpackdir%\HFINT.DAT) DO (
        if %%L==mrxsmb.sys.temp (
                echo mrxsmb.sys>>%svcpackdir%\HFINT.TMP
        ) ELSE (
                echo %%L>>%svcpackdir%\HFINT.TMP
        )
)
move /y %svcpackdir%\HFINT.TMP %svcpackdir%\HFINT.DAT

@ECHO Windows XP Updates Integrated into your Installation Media.
--- Stop Copying Above Here ---

I'm sure it could be refined - a lot - but it works. heh


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
unattended-info mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/unattended-info

Reply via email to