July 26, 200521 yr 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, 200521 yr by Jimbeau
July 26, 200521 yr Author 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
July 26, 200521 yr 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.
July 27, 200521 yr Author 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
July 27, 200521 yr 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).
July 28, 200521 yr Author 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
July 28, 200521 yr I don't understand all your reply ... (sorry not good at english ) .. have you find the solution finally ? or do you want more explanations ?
July 29, 200521 yr 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, 200521 yr by mywindow
July 29, 200521 yr 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.
July 29, 200521 yr 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, 200521 yr by sonic
July 29, 200521 yr 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)
Create an account or sign in to comment