alhaddar Posted November 27, 2005 Posted November 27, 2005 I try Copying i386 to HD http://www.uawiki.org/doku.php?id=wxp:ua:i386 but I can't what's wrong ?can any one tell me step by step
jbm Posted November 27, 2005 Posted November 27, 2005 (edited) Here's what I use. I also install the recovery console, just remove theREM if you want to do that also.source.cmdcmdow @ /HIDREM @ECHO OFFREM 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=%%iREM ECHO Please wait, Recovery Console is being installed locally.REM %CDROM%\i386\winnt32.exe /dudisable /cmdcons /unattendmd %systemroot%\Source\i386ECHO 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.regECHO Done.EXITsource.regREG ADD "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup" /v "SourcePath" /t REG_SZ /d "%systemroot%\Source\" /fREG ADD "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup" /v "ServicePackSourcePath" /t REG_SZ /d "%systemroot%\Source\" /f Edited November 28, 2005 by jbm
Sonic Posted November 27, 2005 Posted November 27, 2005 Just to clean your batch, excuse me I hate the words which are used for nothing ^^%CDROM%\i386\winnt32.exe /cmdconsDelete md %systemroot%\Source\i386Instead use this xcopy /Y /E /H %CDROM%\i386 %systemroot%\Source\i386\ /S
cluberti Posted November 28, 2005 Posted November 28, 2005 Just a nitpick guys - if running from a batch, consider using "winnt32.exe /cmdcons /dudisable /unattend" instead of just /cmdcons.
jbm Posted November 28, 2005 Posted November 28, 2005 @SonicThanks for you input.I use /dudisable because I want to disable dynamic updatesand /unattend because I don't want to be prompted.As for removing 'md %systemroot%\Source\i386' and replacing itwith '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.
alhaddar Posted November 28, 2005 Author Posted November 28, 2005 (edited) where I keep this file in $OEM$ or $Progsthanks for help Edited November 28, 2005 by alhaddar
jbm Posted November 28, 2005 Posted November 28, 2005 I guess it depend on how you install your programs, but I have it in$OEM$\$1\install and call it from runonceex withREG ADD %KEY%\295 /VE /D "Copy XP Source" /fREG ADD %KEY%\295 /V 1 /D "hidec /w %SystemDrive%\install\source.cmd" /fI'm not sure but I think you should be able to put it in $OEM$ and callit in cmdlines.txt with[commands]"source.cmd"
cluberti Posted November 28, 2005 Posted November 28, 2005 I've had excellent luck (both CD and RIS installs work) with this:reg query hklm\software\microsoft\windows\currentversion\setup /v sourcepath > sourcefor /f "tokens=3 skip=3" %%1 in (source) do set sourcepath=%%1xcopy %sourcepath%i386 %systemdrive%\i386 /s/i/q
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