chouputra Posted October 16, 2004 Share Posted October 16, 2004 Could someone tell me how to automatically set the unattended installation to copy the I386 folder content from the CD to the %systemdrive%\I386? Link to comment Share on other sites More sharing options...
cola99 Posted October 16, 2004 Share Posted October 16, 2004 put this line in a .cmd filexcopy.exe %CDROM%\i386 /e /k /h /i /y %SystemRoot%\i386also these in a .reg file[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup]"SourcePath"="C:\\windows\\""ServicePackSourcePath"="C:\\windows\\""Installation Sources"=hex(7):43,00,3A,00,5C,00,57,00,49,00,4E,00,44,00,4F,00,\57,00,53,00,5C,00,69,00,33,00,38,00,36,00,00,00,\00,00[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion]"SourcePath"="C:\\windows\\i386\\" Link to comment Share on other sites More sharing options...
bob3d Posted October 16, 2004 Share Posted October 16, 2004 put this line in a .cmd filexcopy.exe %CDROM%\i386 /e /k /h /i /y %SystemRoot%\i386also these in a .reg file... the xcopy command gives me the following error:File not found - i3860 File(s) copiedIts as if the %CDROM% variable is not being recognized.Also, shouldn't %SystemRoot% be %Systemdrive% ? Link to comment Share on other sites More sharing options...
ravashaak Posted October 16, 2004 Share Posted October 16, 2004 I don't think %cdrom% is a native system variable. Try substituting the drive letter of your cd-rom for %cdrom% in your .cmd file. - Ravashaak Link to comment Share on other sites More sharing options...
buletov Posted October 16, 2004 Share Posted October 16, 2004 just remove %cdrom% from the line and it should work Link to comment Share on other sites More sharing options...
bob3d Posted October 16, 2004 Share Posted October 16, 2004 I don't think %cdrom% is a native system variable. Try substituting the drive letter of your cd-rom for %cdrom% in your .cmd file. - Ravashaak"substituting the drive letter of your cd-rom for %cdrom%" will work if there always is a known drive letter for a particular machine. But for some machines its D: and for some its E:, etc, depending on the number of hard drives and/or partitions installed. I'd like the install to be machine configuration independant.One would think there is a system variable. Link to comment Share on other sites More sharing options...
bob3d Posted October 16, 2004 Share Posted October 16, 2004 just remove %cdrom% from the line and it should workRemoving the %cdrom% will not work since the [GUIRunOnce] .cmd batch is running from the hard drive install directory and not from the cd. Link to comment Share on other sites More sharing options...
smc1979 Posted October 17, 2004 Share Posted October 17, 2004 here is what I use for the batch file to see my cd rom no matter what the drive letter.First make a txt file called cdxp123.txtand put it at the root of the cd. this txt file will be blank it is the file name we will be looking for.now in your batch file as the first thing to run is thisIF EXIST D:\cdxp123.txt set CDROM=D:IF EXIST E:\cdxp123.txt set CDROM=E:IF EXIST F:\cdxp123.txt set CDROM=F:IF EXIST G:\cdxp123.txt set CDROM=G:IF EXIST H:\cdxp123.txt set CDROM=H:IF EXIST I:\cdxp123.txt set CDROM=I:IF EXIST J:\cdxp123.txt set CDROM=J:now the %CDROM% will work.Hope this helps.I like to use this cause I install all the software off the cd instead of having it copied to the hard drive and then installed. Link to comment Share on other sites More sharing options...
bob3d Posted October 17, 2004 Share Posted October 17, 2004 here is what I use for the batch file to see my cd rom no matter what the drive letter.First make a txt file called cdxp123.txtand put it at the root of the cd. this txt file will be blank it is the file name we will be looking for.now in your batch file as the first thing to run is thisIF EXIST D:\cdxp123.txt set CDROM=D:IF EXIST E:\cdxp123.txt set CDROM=E:IF EXIST F:\cdxp123.txt set CDROM=F:IF EXIST G:\cdxp123.txt set CDROM=G:IF EXIST H:\cdxp123.txt set CDROM=H:IF EXIST I:\cdxp123.txt set CDROM=I:IF EXIST J:\cdxp123.txt set CDROM=J:now the %CDROM% will work.Hope this helps.I like to use this cause I install all the software off the cd instead of having it copied to the hard drive and then installed. It worked perfectly. Thanks! Link to comment Share on other sites More sharing options...
cola99 Posted October 17, 2004 Share Posted October 17, 2004 You also can use this short one..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\win51ip.SP2 SET CDROM=%%dbut remember to have "win51ip.SP2" in your cd...Also systemroot is C:\Windows or C:\WINNT.. and systemdrive is C:\ Link to comment Share on other sites More sharing options...
bob3d Posted October 17, 2004 Share Posted October 17, 2004 You also can use this short one..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\win51ip.SP2 SET CDROM=%%dbut remember to have "win51ip.SP2" in your cd...Also systemroot is C:\Windows or C:\WINNT.. and systemdrive is C:\ Thanks!Much more elegant as a solution. I tested it this afternoon and it does work. The only difference is that I check for %%d\setup.exe, since that always must be present on any Windows install CD. Link to comment Share on other sites More sharing options...
ravashaak Posted October 18, 2004 Share Posted October 18, 2004 I gotta second that. Thanks for the loop Cola. It works great. - Ravashaak Link to comment Share on other sites More sharing options...
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