Jump to content

Recommended Posts

Posted

This requires a bit of manual setup... By no means is this as automated or full featured as XPCreate

This requires winrar, CDBurn.exe, CDImage.exe, a bootsector, and an existing ISO of any flavor of XP,... I will add making the ISO and the Bootsector eventually

No errorchecking or trapping is in place yet, and will probably blowup if the files/folders aren't ready ahead of time.

first update will be to create the XPSource ISO and capture the bootsector

then to error out if that iso doesn't exist.

There is much to do if you want to compare to nlite or xpcreate, and I'm not that ambitious (yet :whistle: )

My premise is to make a UA CD where the hotfixes\updates stay on the CD, not copied down in the $oem$ structure (on purpose). I just want to be able to modify the files/filestructure/file contents in a 'master' location and have it spin it into a fresh UaCD

anything that I am missing in the grand scheme? I know there is much to do to make it bullet proof later on

@echo off
@echo off

REM  ----- Make Folder Structure -----
if not exist $oem$ do md $oem$
if not exist Bootsector do md Bootsector
if not exist Hotfixes do md Hotfixes
if not exist XPSource do md XPSource
if not exist XPSP2 do md XPSP2
if not exist XPType3 do md XPType3
rd c:\XPTemp /q /s
MD c:\XPTemp

REM  ----- Create XP ISO -----
if exist XPSource\WinXP.iso goto Extract

:PROGRAMS
ECHO Please insert a WindowsXP disc in the CD drive
pause
FOR %%D IN (D E F G H I J K L M N O P Q R S T U V W X Y Z) DO IF EXIST %%D:\WIN51IP SET CDROM=%%D:
if not %CDROM% GOTO PROGRAMS
CDIMAGE -LXPBUILD -YD -N -H -X -OCI -M -D d: XPSource\WinXP.iso
cdr open %CDROM%
bbie XPSource\WinXP.iso
move image1.bin bootsector\bootsector.bin

pause

REM  ----- Extract ISO to Working Folder -----
:Extract
"%programfiles%\winrar\winrar.exe" x XPSource\WinXP.iso c:\XPtemp

REM  ----- Slipstream SP2 if necessary -----
if not exist c:\xptemp\win51ip.SP2 XPsp2\WindowsXP-KB835935-SP2-ENU.exe /integrate:c:\xptemp /passive

REM  ----- Slipstream Type 3 Hotfixes -----
FOR /f %%f in ('dir /b XPType3\*.exe') DO XPType3\%%f /integrate:c:\xptemp /passive

REM  ----- Remove Unnecessary Folders from working set -----
rem rd c:\xptemp\cmpnents /q /s
rd c:\xptemp\Docs /q /s
rd c:\xptemp\dotnetfx /q /s
rd c:\xptemp\support /q /s
rd c:\xptemp\valueadd /q /s

REM  ----- Copy OEM files, drivers, and other hotfixes to working set -----
copy winnt.sif c:\xptemp\i386\ /y
xcopy $oem$ c:\XPTemp\$oem$ /e /v /h /y /i
xcopy hotfixes c:\XPTemp\hotfixes /e /v /h /y /i

REM  ----- Create ISO of working folder -----
del xpbuild.iso
echo %date% %time% > c:\XPTemp\BUILD.TXT
CDIMAGE -LXPBUILD -YD -N -H -X -OCI -M -D c:\XPTemp XPBuild.ISO -Bbootsector\bootsector.bin
del c:\XPTemp\BUILD.TXT

REM  ----- burn ISO to CD -----
CDBURN.EXE d: xpbuild.iso -SPEED MAX

pause


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...