Jump to content

I try Copying i386 to HD


Recommended Posts


Here's what I use. I also install the recovery console, just remove the

REM if you want to do that also.

source.cmd

cmdow @ /HID
REM @ECHO OFF

REM for %%i in (D: E: F: G: H: I: J: K: L: M: N: O: P: Q: R: S: T: U: V: X: Y: Z:) do if exist %%i\WIN51 set CDROM=%%i
REM ECHO Please wait, Recovery Console is being installed locally.

REM %CDROM%\i386\winnt32.exe /dudisable /cmdcons /unattend
md %systemroot%\Source\i386
ECHO Please wait, source files are being copied. This may take several minutes.
xcopy /Y /E /H %CDROM%\i386\*.* %systemroot%\Source\i386\
xcopy /Y /E /F /C /R /H %CDROM%\i386\*.sys %systemdrive%\cmdcons\
ECHO Adding registry entries.
regedit /S %SystemDrive\install\source.reg
ECHO Done.
EXIT

source.reg

REG ADD "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup" /v "SourcePath" /t REG_SZ /d "%systemroot%\Source\" /f
REG ADD "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup" /v "ServicePackSourcePath" /t REG_SZ /d "%systemroot%\Source\" /f

Edited by jbm
Link to comment
Share on other sites

Just to clean your batch, excuse me I hate the words which are used for nothing ^^

%CDROM%\i386\winnt32.exe /cmdcons

Delete

md %systemroot%\Source\i386

Instead use this

xcopy /Y /E /H %CDROM%\i386 %systemroot%\Source\i386\ /S

Link to comment
Share on other sites

@Sonic

Thanks for you input.

I use /dudisable because I want to disable dynamic updates

and /unattend because I don't want to be prompted.

As for removing 'md %systemroot%\Source\i386' and replacing it

with 'xcopy /Y /E /H %CDROM%\i386 %systemroot%\Source\i386\ /S'

how much time will I save?

I got this batch from this forum a while ago and it's worked ok for me.

Link to comment
Share on other sites

I guess it depend on how you install your programs, but I have it in

$OEM$\$1\install and call it from runonceex with

REG ADD %KEY%\295 /VE /D "Copy XP Source" /f
REG ADD %KEY%\295 /V 1 /D "hidec /w %SystemDrive%\install\source.cmd" /f

I'm not sure but I think you should be able to put it in $OEM$ and call

it in cmdlines.txt with

[commands]
"source.cmd"

Link to comment
Share on other sites

I've had excellent luck (both CD and RIS installs work) with this:

reg query hklm\software\microsoft\windows\currentversion\setup /v sourcepath > source
for /f "tokens=3 skip=3" %%1 in (source) do set sourcepath=%%1
xcopy %sourcepath%i386 %systemdrive%\i386 /s/i/q

Link to comment
Share on other sites

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...