Jimbeau Posted July 26, 2005 Posted July 26, 2005 (edited) Is there an easy way to make the I386 automagicaly copy to the local hard drive during unattended install. It is not so important for me to install from the C as it is just to have the files there for future use. I can change the source drive pointer in the registry via script. I know I can just copy but was hoping for a "makelocalsource" type switch or a $Something that doesnt require 2 copies of the I386 directory on the cd......As always, Thanks for all of your help.Jim Edited July 26, 2005 by Jimbeau
Jimbeau Posted July 26, 2005 Author Posted July 26, 2005 Not what I wanted but I am using this for now.....Result = oshell.Popup("Please Wait Configuration In Progress", 2, "Tasks=6", 64)If filesys.FolderExists("E:\I386") Then filesys.CopyFolder "E:\I386","c:\"End IfIf filesys.FolderExists("D:\I386") Then filesys.CopyFolder "D:\I386","c:\"End If
Doc Symbiosis Posted July 26, 2005 Posted July 26, 2005 You can copy the files to your harddrive, e.g. %windir%\i386.Then you have to insert this path in the value Sourcepath under the key:HKLM\Software\Microsoft\Windows NT\CurrentversionNow every time, the system needs the installation files, it should search in this path.
Jimbeau Posted July 27, 2005 Author Posted July 27, 2005 Doc, thanks for the reply. That was my intention, my question was how to automaticaly copy the files from the cd to the hard drive. As in I use $OEM$ to copy files to various locations, is there a way to do this from the cd. The vbs script that I have works, but the $ thing is cleaner....Thanks,Jim
Sonic Posted July 27, 2005 Posted July 27, 2005 You can re-copy I386 in $OEM$\$1. But it's hard to burn it on simple 700mb cdr ... I think the best solution is a batch which search the cdrom letter and i386 folder and copy all the content in C:\ .. but this bath must call after installation of Windows (cmdlines.txt / RunOnceEx).
Jimbeau Posted July 28, 2005 Author Posted July 28, 2005 You can re-copy I386 in $OEM$\$1. But it's hard to burn it on simple 700mb cdr ... I think the best solution is a batch which search the cdrom letter and i386 folder and copy all the content in C:\ .. but this bath must call after installation of Windows (cmdlines.txt / RunOnceEx).<{POST_SNAPBACK}>That is what the above code is doing, since it is a new install and I am controlling it I know the drive will either be C or D.....I call this code from my final clean-up script. Thanks for the replyJim
Sonic Posted July 28, 2005 Posted July 28, 2005 I don't understand all your reply ... (sorry not good at english ) .. have you find the solution finally ? or do you want more explanations ?
mywindow Posted July 29, 2005 Posted July 29, 2005 (edited) Here is the windows batch command I use in a silent .exe?Basic fuction:Determine if WinXP is running and what drive contains the I386 folder?Makes a folder called C:\Windows\I386Copies all files from %CDROM%\I386 to C:\Windows\I386Changes registry to new locationCDFiles2Disk.cmd@ECHO OFFcmdow @ /HIDTITLE=CDSource2Driveif %OS%==Windows_NT goto STARTgoto END:STARTset SOURCE=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:\I386 set SOURCE=%%d:\if "%SOURCE%"=="" goto ERRORif NOT EXIST "C:\WINDOWS\I386" (mkdir "C:\WINDOWS\I386") ELSE (goto END)xcopy "%SOURCE%\I386\*" "C:\WINDOWS\I386" /D /E /V /C /I /H /R /K /YSET KEY="HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup"REG ADD %KEY% /v Installation Sources /t REG_MULTI_SZ /d C:\\WINDOWS\\I386 /fREG ADD %KEY% /v SourcePath /t REG_SZ /d C:\\WINDOWS\\I386\\ /fREG ADD %KEY% /v ServicePackSourcePath /t REG_SZ /d C:\\WINDOWS\\I386\\ /fREG ADD %KEY% /v CDInstall /t REG_DWORD /d 00000001 /fgoto END:ERRORecho Was unable to locate the Windows CD files? > "%TMP%\message"echo. >> "%TMP%\message"echo (Make Sure The Windowz CD Is Inserted Into The Drive?) >> "%TMP%\message"type "%TMP%\message" | msg %username% /TIME:25 /Wif EXIST "%TMP%\message" del /F /Q "%TMP%\message":ENDEXIT Edited July 29, 2005 by mywindow
Nilfred Posted July 29, 2005 Posted July 29, 2005 You can re-copy I386 in $OEM$\$1. But it's hard to burn it on simple 700mb cdr ...<{POST_SNAPBACK}>If the files are the same only one copy are phisically on CD and both logically linked. So is safe to copy the files to the $1 or $$ folder.Further reading: Multi boot CD, All-in-one CD, cdimage.exe.
Sonic Posted July 29, 2005 Posted July 29, 2005 (edited) If the files are the same only one copy are phisically on CD and both logically linked.hum interesting to know, how create these files (same as hard links on unix system I think ..) ? with cdimage.exe ? Edited July 29, 2005 by sonic
Yzöwl Posted July 29, 2005 Posted July 29, 2005 CDIMAGE using the O switche(s)-o optimize storage by encoding duplicate files only once-oc slower duplicate file detection using binary comparisons rather than MD5 hash values-oi ignore diamond compression timestamps when comparing files-os show duplicate files while creating image (-o options can be combined like -ocis)
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now