Radimus Posted December 28, 2004 Posted December 28, 2004 This requires a bit of manual setup... By no means is this as automated or full featured as XPCreateThis 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 eventuallyNo 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 bootsectorthen 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 )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 UaCDanything 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 offREM ----- Make Folder Structure -----if not exist $oem$ do md $oem$if not exist Bootsector do md Bootsectorif not exist Hotfixes do md Hotfixesif not exist XPSource do md XPSourceif not exist XPSP2 do md XPSP2if not exist XPType3 do md XPType3rd c:\XPTemp /q /sMD c:\XPTempREM ----- Create XP ISO -----if exist XPSource\WinXP.iso goto Extract:PROGRAMSECHO Please insert a WindowsXP disc in the CD drivepause 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 PROGRAMSCDIMAGE -LXPBUILD -YD -N -H -X -OCI -M -D d: XPSource\WinXP.isocdr open %CDROM%bbie XPSource\WinXP.isomove image1.bin bootsector\bootsector.binpauseREM ----- Extract ISO to Working Folder -----:Extract"%programfiles%\winrar\winrar.exe" x XPSource\WinXP.iso c:\XPtempREM ----- Slipstream SP2 if necessary -----if not exist c:\xptemp\win51ip.SP2 XPsp2\WindowsXP-KB835935-SP2-ENU.exe /integrate:c:\xptemp /passiveREM ----- Slipstream Type 3 Hotfixes -----FOR /f %%f in ('dir /b XPType3\*.exe') DO XPType3\%%f /integrate:c:\xptemp /passiveREM ----- Remove Unnecessary Folders from working set -----rem rd c:\xptemp\cmpnents /q /srd c:\xptemp\Docs /q /srd c:\xptemp\dotnetfx /q /srd c:\xptemp\support /q /srd c:\xptemp\valueadd /q /sREM ----- Copy OEM files, drivers, and other hotfixes to working set -----copy winnt.sif c:\xptemp\i386\ /yxcopy $oem$ c:\XPTemp\$oem$ /e /v /h /y /ixcopy hotfixes c:\XPTemp\hotfixes /e /v /h /y /iREM ----- Create ISO of working folder -----del xpbuild.isoecho %date% %time% > c:\XPTemp\BUILD.TXTCDIMAGE -LXPBUILD -YD -N -H -X -OCI -M -D c:\XPTemp XPBuild.ISO -Bbootsector\bootsector.bindel c:\XPTemp\BUILD.TXTREM ----- burn ISO to CD -----CDBURN.EXE d: xpbuild.iso -SPEED MAXpause
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now