Jump to content

[request] copy i386 and set source path


newsposter

Recommended Posts

Nuhi, do you think it would be possible to have an nlite setting that would:

- copy i386 from the CD/DVD to c: and

- set all of the 'sourcepath' registry variables to point to c:\i386

thanks!

Edited by newsposter
Link to comment
Share on other sites


That's not a bad feature, but this can be done with a single CMD script (I use a separated registry file, however). The way I currently do it is set a command in cmdlines.txt that points a .reg file and the cmd script to copy the files:

CMDLINES.TXT:
[COMMANDS]
"REGEDIT /S i386copy.reg"
"i386copy.cmd"
EXIT

i386copy.reg:
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup]
"SourcePath"="%systemroot%\\i386\\"
"ServicePackSourcePath"="%systemroot%\\i386\\"

i386copy.cmd:
@ECHO OFF
for %%i in (C 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 %%i:\WIN51IP set CDROM=%%i:
ECHO Please wait, Recovery Console is being installed locally.
%CDROM%\i386\winnt32.exe /dudisable /cmdcons /unattend
mkdir %systemroot%\i386
ECHO Please wait, source files are being copied. This may take several minutes.
xcopy /e/h/f/v/c/y/z %CDROM%\i386\*.* %systemroot%\i386\
ECHO Adding registry entries.
regedit.exe /s %CDROM%\$OEM$\i386copy.reg
ECHO Done.
EXIT

Note: My i386copy.cmd also installs the Recovery Console.

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