dkreifus Posted April 4, 2004 Posted April 4, 2004 I've been tryin to get this installation going, with little luck.Everything runs for the first CD, but when I try to get the 2nd CD, I get the error that says."Cannot perform a cyclic copy."Here is the important code for the first CD....IF EXIST %systemdrive%\install\applications.cmd GOTO RUNBATCHSET CDROM2=IF EXIST D:\install\applications.cmd SET CDROM2=D:IF EXIST E:\install\applications.cmd SET CDROM2=E:IF EXIST F:\install\applications.cmd SET CDROM2=F:IF EXIST G:\install\applications.cmd SET CDROM2=G:IF EXIST H:\install\applications.cmd SET CDROM2=H:IF EXIST I:\install\applications.cmd SET CDROM2=I:ECHO Please be patient while files are copied to your hard drive.xcopy %CDROM2%\install %systemdrive%\install\ /S /C /Q /H /YECHO.The file structure for the 2nd CD is:$OEM$ L $1 L Install L Applications L applications.cmdI have tried changing the destination folder Install2, to get rid of the duplicate issue, and I've even tried removing the $OEM$ & %1 folders.... with no avail. Please help....this is the last BIG bug I need to work out...
dkreifus Posted April 4, 2004 Author Posted April 4, 2004 I actually got that when I googled the error before. I'm new to batch files, xcopy, and even newer to xxcopy. I don't really know what the switches do.I do have a bit of coding knowledge...but its not helping here
ZoSTeR Posted April 4, 2004 Posted April 4, 2004 CDROM2 doesn't seem to get set right."Cyclic copy" error means you're trying to copy the files onto themselves.Do you really have the applications.cmd in the install folder or should it beIF EXIST D:\applications.cmd SET CDROM2=D:
dkreifus Posted April 4, 2004 Author Posted April 4, 2004 it looks like i already have an install folder, because of some previous installations. I am testing a different folder setup as I type this..so I will post if it works.
ZoSTeR Posted April 4, 2004 Posted April 4, 2004 For safety you should add:IF NOT "%CDROM2%"=="" THEN xcopy...
dkreifus Posted April 5, 2004 Author Posted April 5, 2004 Somehow, my post vanished. I've either figured out the problem, and created another, or made another problem altogether...The problem is now that somehow, the install folder is copied from the original CD, or from the hard drive..I can't tell how or why..(the CD is removed)CD 1: $OEM$L $1L installL Applications Start.cmdCD 2: StructureI386$OEM$L $1L installL Applications applications.cmd (all the code in Applications.cmd works without a hitch.)CLS@echo offTITLE Windows XP SP2 - Unattended InstallationECHO.ECHO Over the next few minutes you will see automated installations ECHO Starting installation of ApplicationsECHO.BLAH BLAH...SEVERAL APPLICATIONS ARE INSTALLED HEREPAUSEECHO.ECHO Ejecting CD-ROM Drives...%systemdrive%\install\tools\cdr.exe open %CDROM%ECHO.ECHO Insert CD 2 of the installation and...PAUSE%systemdrive%\install\tools\cdr.exe close %CDROM%PAUSESET CDROM2=IF EXIST D:\install\applications.cmd SET CDROM2=D:IF EXIST E:\install\applications.cmd SET CDROM2=E:IF EXIST F:\install\applications.cmd SET CDROM2=F:IF EXIST G:\install\applications.cmd SET CDROM2=G:IF EXIST H:\install\applications.cmd SET CDROM2=H:IF EXIST I:\install\applications.cmd SET CDROM2=I:ECHO Please be patient while files are copied to your hard drive.xcopy %CDROM2%\install %systemdrive%\install2\ /S /C /Q /H /YECHO.start /wait %systemdrive%\install2\applications.cmd:ERRORIF NOT EXIST %systemdrive%\install2\applications.cmd GOTO _ECHOGOTO END:_ECHOECHO.ECHO *******************WARNING*******************ECHO OFFICE 2003 was not installedPAUSE:ENDECHO.::ECHO Deleting Temp Installation Files...::RD /S /Q %systemdrive%\install2::ECHO.PAUSEEXITThanks for any help. I really appreciate it...
ZoSTeR Posted April 5, 2004 Posted April 5, 2004 All content of the $OEM$ folder is automatically copied during the unattended setup.Look here for an extended explanation.Insert:Echo CDROM2 is %CDROM2%Pausebefore your xcopy for debugging
dkreifus Posted April 5, 2004 Author Posted April 5, 2004 But this is a setup running after windows is installed. Does windows somehow auotmatically copy OEM folders?
ZoSTeR Posted April 5, 2004 Posted April 5, 2004 Whats the purpose of this CD?CD 2: StructureI386 ???$OEM$ ???L $1L installL Applicationsapplications.cmd Why not justInstall <fldr> L applications.cmd
dkreifus Posted April 6, 2004 Author Posted April 6, 2004 I actually have been testing that one as I type this. I am creating the ISOs to load into Virtual... I'll probably just PM you so we can stop wasting posts.
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